Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 120 additions & 27 deletions .github/workflows/scripts/test-rn-bare-ios-launch-smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ APP_LOG="${RNFB_TEST_RN_BARE_LAUNCH_LOG:-${TMP_ROOT}/test-rn-bare-launch-smoke.l
# Same stem as APP_LOG so a TMP/env override and the CI artifact path stay aligned.
SCREENSHOT="${APP_LOG%.log}.png"
XCODEBUILD_LOG="${RNFB_TEST_RN_BARE_LAUNCH_XCODEBUILD_LOG:-${TMP_ROOT}/test-rn-bare-launch-smoke-xcodebuild.log}"
# SceneDelegate appends RNFB_SMOKE_* lines to tmp/rnfb-smoke-report.txt in the
# app's data container once its scene is active and its window is key. Unlike
# UIKit's own log lines (or simctl launch --stderr, which some CI hosts never
# create) it does not depend on anything outside the app. A copy is kept next to
# APP_LOG for the CI artifact.
APP_REPORT_COPY="${APP_LOG}.report.txt"
APP_REPORT_FILE=""
# UIKit's key-window/sceneOfRecord lines can land just before the scene
# activates and the app writes its report, so wait this long for it.
APP_REPORT_GRACE_SEC="${RNFB_TEST_RN_BARE_APP_REPORT_GRACE_SEC:-10}"
# Cap for key-window + sceneOfRecord poll after launch (replaces fixed sleep 10).
KEY_WINDOW_WAIT_SEC="${RNFB_TEST_RN_BARE_KEY_WINDOW_WAIT_SEC:-60}"
PODS_PBXPROJ="test-rn-bare/ios/Pods/Pods.xcodeproj/project.pbxproj"
Expand Down Expand Up @@ -208,22 +218,56 @@ else
fi

xcrun simctl terminate "$UDID" "$BUNDLE_ID" 2>/dev/null || true
APP_PID=""
rm -f "$APP_REPORT_COPY"
if app_data_dir="$(xcrun simctl get_app_container "$UDID" "$BUNDLE_ID" data 2>/dev/null)" && [[ -d "$app_data_dir" ]]; then
APP_REPORT_FILE="${app_data_dir}/tmp/rnfb-smoke-report.txt"
rm -f "$APP_REPORT_FILE"
else
log "WARN: simctl get_app_container ${BUNDLE_ID} data failed; the app report cannot be read"
fi
# simctl prints "<bundle id>: <pid>". Simulator apps are host processes, so the
# pid also works with kill -0 and lsof on the runner.
if [[ "$PROBE_DYNAMIC_FIREBASE" == "1" ]]; then
# -FIRDebugEnabled turns on FirebaseCore debug logging (soft I-COR check).
# Pass args after `--` so simctl delivers them as process argv (not as simctl flags).
# simctl prints "<bundle id>: <pid>".
launch_output="$(xcrun simctl launch "$UDID" "$BUNDLE_ID" -- -FIRDebugEnabled)"
APP_PID="${launch_output##*: }"
else
xcrun simctl launch "$UDID" "$BUNDLE_ID" >/dev/null
launch_output="$(xcrun simctl launch "$UDID" "$BUNDLE_ID")"
fi
APP_PID="${launch_output##*: }"
LAUNCHED_AT=$SECONDS

app_alive() {
[[ "$APP_PID" =~ ^[0-9]+$ ]] && kill -0 "$APP_PID" 2>/dev/null
}

# On some self-hosted runners `log stream` attaches late or drops the launch
# burst: the app runs, but the stream holds none of its UIKit lines. Markers are
# looked up in the stream and, once written, in a retrospective log show.
RETRO_SHOW_LOG="${APP_LOG}.show.txt"
rm -f "$RETRO_SHOW_LOG"
launch_logs() {
cat "$APP_LOG" "$RETRO_SHOW_LOG" 2>/dev/null | grep -Ev '^Filtering the log data using' || true
}

# Poll for key-window + sceneOfRecord instead of a fixed sleep 10 — cold sims
# often need longer; warm ones finish early.
SCENE_OF_RECORD="sceneOfRecord: sceneID: sceneID:${BUNDLE_ID}-default"
SCENE_IPS_PATTERN='UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption|NoSceneLifecycleAdoption'
APP_REPORT_PREFIX='RNFB_SMOKE_KEY_WINDOW '
app_report_seen() {
[[ -n "$APP_REPORT_FILE" ]] && grep -Fq "$APP_REPORT_PREFIX" "$APP_REPORT_FILE" 2>/dev/null
}
app_report_state() {
if [[ -n "$APP_REPORT_FILE" && -f "$APP_REPORT_FILE" ]]; then
printf '%s bytes: %s' "$(wc -c <"$APP_REPORT_FILE" | tr -d ' ')" "$(head -5 "$APP_REPORT_FILE" | tr '\n' '|')"
else
printf 'missing'
fi
}
key_window_seen=0
scene_seen=0
app_exited=0
poll_deadline=$((SECONDS + KEY_WINDOW_WAIT_SEC))
while (( SECONDS < poll_deadline )); do
if grep -Fq 'Window did become application key' "$APP_LOG"; then
Expand All @@ -235,52 +279,101 @@ while (( SECONDS < poll_deadline )); do
if [[ "$key_window_seen" -eq 1 && "$scene_seen" -eq 1 ]]; then
break
fi
scene_ips_early="$(
grep -Ei 'UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption|NoSceneLifecycleAdoption' "$APP_LOG" \
| grep -Ev '^Filtering the log data using' \
|| true
)"
if [[ -n "$scene_ips_early" ]]; then
# Leave a moment for a runtime-issue line that lands right after activation.
if app_report_seen && (( SECONDS - LAUNCHED_AT >= 3 )); then
break
fi
if grep -Eiq "$SCENE_IPS_PATTERN" <<<"$(launch_logs)"; then
break
fi
if [[ "$APP_PID" =~ ^[0-9]+$ ]] && ! app_alive; then
app_exited=1
break
fi
sleep 0.5
done
if ! app_report_seen && [[ "$app_exited" -eq 0 ]] && app_alive; then
report_deadline=$((SECONDS + APP_REPORT_GRACE_SEC))
while (( SECONDS < report_deadline )) && ! app_report_seen && app_alive; do
sleep 0.5
done
fi
log "app report file (${APP_REPORT_FILE:-unknown}): $(app_report_state)"
if [[ -n "$APP_REPORT_FILE" && -f "$APP_REPORT_FILE" ]]; then
cp "$APP_REPORT_FILE" "$APP_REPORT_COPY" || true
fi
if [[ "$PROBE_DYNAMIC_FIREBASE" == "1" ]]; then
# Map the images while the app is still running. Asserted below.
rnfb_probe_launch_capture_loaded_images "$APP_PID"
fi
if ! kill -0 "$LOG_PID" 2>/dev/null; then
log "WARN: log stream exited before the poll ended"
fi
kill "$LOG_PID" 2>/dev/null || true
wait "$LOG_PID" 2>/dev/null || true
LOG_PID=""

scene_ips="$(
grep -Ei 'UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption|NoSceneLifecycleAdoption' "$APP_LOG" \
| grep -Ev '^Filtering the log data using' \
|| true
)"
if [[ -n "$scene_ips" ]]; then
fail "scene lifecycle runtime issue detected — see ${APP_LOG}"
if ! grep -Fq 'Window did become application key' "$APP_LOG" || ! grep -Fq "$SCENE_OF_RECORD" "$APP_LOG"; then
log "log stream missed launch markers; reading them back with log show → ${RETRO_SHOW_LOG}"
show_minutes=$(( (SECONDS - LAUNCHED_AT) / 60 + 2 ))
show_status=0
xcrun simctl spawn "$UDID" log show --info --debug --style compact --last "${show_minutes}m" \
--predicate "process == \"${PROCESS_NAME}\" OR subsystem == \"com.apple.runtime-issues\" OR eventMessage CONTAINS[c] \"EvaluateRuntimeIssueForNoSceneLifecycleAdoption\"" \
>"$RETRO_SHOW_LOG" 2>&1 || show_status=$?
log "log show exit ${show_status}, $(wc -l <"$RETRO_SHOW_LOG" | tr -d ' ') lines"
fi

all_launch_logs="$(launch_logs)"
if grep -Eiq "$SCENE_IPS_PATTERN" <<<"$all_launch_logs"; then
fail "scene lifecycle runtime issue detected — see ${APP_LOG} and ${RETRO_SHOW_LOG}"
fi

key_window_logged=0
scene_logged=0
if grep -Fq 'Window did become application key' <<<"$all_launch_logs"; then
key_window_logged=1
fi
if grep -Fq "$SCENE_OF_RECORD" <<<"$all_launch_logs"; then
scene_logged=1
fi
if ! grep -Fq 'Window did become application key' "$APP_LOG"; then

app_report="$(grep -F "$APP_REPORT_PREFIX" "$APP_REPORT_COPY" 2>/dev/null | head -1 || true)"
pass_note=""
if [[ -n "$app_report" ]]; then
log "app report: ${app_report}"
if [[ "$app_report" != *" connectedScenes=1 "* || "$app_report" != *"sceneRole=UIWindowSceneSessionRoleApplication"* ]]; then
fail "expected one connected application scene with a key window, app reported: ${app_report} — see ${APP_REPORT_COPY}"
fi
pass_note="app reported a key window in its only scene"
if [[ "$key_window_logged" -eq 0 || "$scene_logged" -eq 0 ]]; then
log "note: the unified log did not keep the UIKit key-window/sceneOfRecord lines (key=${key_window_logged} scene=${scene_logged}); the app's own report is authoritative"
fi
elif [[ "$key_window_logged" -eq 1 && "$scene_logged" -eq 1 ]]; then
log "WARN: no ${APP_REPORT_PREFIX}line in the app report ($(app_report_state)); passing on the UIKit key-window and sceneOfRecord lines"
pass_note="UIKit logged a key window and sceneOfRecord; no app report"
elif [[ "$key_window_logged" -eq 1 ]]; then
fail "expected single-scene sceneOfRecord not observed and no app report — see ${APP_LOG} and ${APP_REPORT_COPY}"
else
# Before the EXIT trap terminates the app. A failed screenshot must not replace this error.
if ! xcrun simctl io "$UDID" screenshot "$SCREENSHOT"; then
log "WARN: screenshot failed (${SCREENSHOT})"
else
log "screenshot ${SCREENSHOT}"
fi
exit_note=""
if [[ "$app_exited" -eq 1 ]] || { [[ "$APP_PID" =~ ^[0-9]+$ ]] && ! app_alive; }; then
exit_note=" (app process ${APP_PID:-?} exited)"
fi
firebase_hint="$(
grep -Ei 'Firebase|FIRApp|GOOGLE_APP_ID|FirebaseApp\.configure|Configuration fails|terminated due to signal|abort\(\)' "$APP_LOG" \
| grep -Ev '^Filtering the log data using' \
grep -Ei 'Firebase|FIRApp|GOOGLE_APP_ID|FirebaseApp\.configure|Configuration fails|terminated due to signal|abort\(\)' <<<"$all_launch_logs" \
| grep -Fv 'com.facebook.react.log:javascript' \
| tail -8 \
|| true
)"
if [[ -n "$firebase_hint" ]]; then
fail "app window never became key (Firebase/init crash likely) — log excerpt: ${firebase_hint} — full log: ${APP_LOG}"
fail "app window never became key${exit_note} (Firebase/init crash likely) — log excerpt: ${firebase_hint} — full log: ${APP_LOG}, app report: ${APP_REPORT_COPY}"
fi
fail "app window never became key — see ${APP_LOG}"
fi
if ! grep -Fq "sceneOfRecord: sceneID: sceneID:${BUNDLE_ID}-default" "$APP_LOG"; then
fail "expected single-scene sceneOfRecord not observed — see ${APP_LOG}"
fail "app window never became key${exit_note} — see ${APP_LOG} and ${APP_REPORT_COPY}"
fi

if [[ "$PROBE_DYNAMIC_FIREBASE" == "1" ]]; then
Expand All @@ -299,7 +392,7 @@ fi

xcrun simctl terminate "$UDID" "$BUNDLE_ID"
if [[ "$PROBE_DYNAMIC_FIREBASE" == "1" ]]; then
log "PASS: iOS 27 sim launch smoke, dynamic probe (foreground scene, RNFBFirebase.framework embedded and loaded, probe configure breadcrumb observed)"
log "PASS: iOS 27 sim launch smoke, dynamic probe (${pass_note}; RNFBFirebase.framework embedded and loaded, probe configure breadcrumb observed)"
else
log "PASS: iOS 27 sim launch smoke (foreground scene, no UIScene runtime issue)"
log "PASS: iOS 27 sim launch smoke (${pass_note}; no UIScene runtime issue)"
fi
12 changes: 8 additions & 4 deletions .github/workflows/test_rn_bare_ios_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,20 @@ jobs:
- name: test-rn-bare iOS launch smoke
run: yarn test-rn-bare:ios:launch-smoke

# Paths match job env above (launch / metro / xcodebuild logs, key-window screenshot, optional *.retro.txt).
# Paths match job env above (launch / metro / xcodebuild logs, key-window screenshot, optional *.retro.txt / *.show.txt, app report *.report.txt).
- name: Upload launch-smoke logs
# https://github.com/actions/upload-artifact/releases
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
continue-on-error: true
if: failure()
if: always()
with:
name: rn-bare-launch-smoke-logs
path: |
/tmp/test-rn-bare-launch-smoke.log
/tmp/test-rn-bare-launch-smoke.png
/tmp/test-rn-bare-launch-smoke.log.retro.txt
/tmp/test-rn-bare-launch-smoke.log.show.txt
/tmp/test-rn-bare-launch-smoke.log.report.txt
/tmp/test-rn-bare-launch-smoke-metro.log
/tmp/test-rn-bare-launch-smoke-xcodebuild.log
if-no-files-found: warn
Expand Down Expand Up @@ -251,18 +253,20 @@ jobs:
- name: test-rn-bare iOS launch smoke (dynamic Firebase probe)
run: yarn test-rn-bare:ios:launch-smoke

# Paths match dynfb env above (probe launch / metro / xcodebuild logs, key-window screenshot, optional *.retro.txt).
# Paths match dynfb env above (probe launch / metro / xcodebuild logs, key-window screenshot, optional *.retro.txt / *.show.txt, app report *.report.txt).
- name: Upload dynfb launch-smoke logs
# https://github.com/actions/upload-artifact/releases
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
continue-on-error: true
if: failure()
if: always()
with:
name: rn-bare-dynfb-launch-smoke-logs
path: |
/tmp/test-rn-bare-launch-smoke-probe.log
/tmp/test-rn-bare-launch-smoke-probe.png
/tmp/test-rn-bare-launch-smoke-probe.log.retro.txt
/tmp/test-rn-bare-launch-smoke-probe.log.show.txt
/tmp/test-rn-bare-launch-smoke-probe.log.report.txt
/tmp/test-rn-bare-launch-smoke-metro-probe.log
/tmp/test-rn-bare-launch-smoke-xcodebuild-probe.log
if-no-files-found: warn
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/tests_e2e_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ jobs:
fail-fast: false
matrix: ${{fromJson(needs.matrix_prep.outputs.matrix)}}
steps:
# Spotlight (mdworker_shared/mds_stores) is the top CPU consumer on GitHub-hosted
# macOS runners during build and simulator boot, starving Metro at app launch.
- name: Disable Spotlight indexing
if: runner.environment == 'github-hosted'
continue-on-error: true
run: |
sudo mdutil -a -i off
sudo mdutil -a -s || true

- name: Setup Environment for Screen Recording
# https://github.com/guidepup/setup-action/releases
uses: guidepup/setup-action@5d19b1151e972898cae0f0cc44e239127953bd90 # v0.21.0
Expand Down
2 changes: 1 addition & 1 deletion okf-bundle/testing/e2e/run-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ macOS: `yarn tests:macos:test-cover` only — same `:8090` transport, no Detox.
3. Host `POST`s **`/orchestrate-state`** (`{ "phase": "launch-pending" | "launch-ok" | … }`) to the control port (best-effort diagnostics).
4. After `launchApp` succeeds, host `POST`s **`/launch-ready`** → test runner calls `server.run()` and the app may receive the mocha-remote `run` action.
5. Mocha tests must not start during a stuck or retried `launchApp`; on inner launch retry the host may kill and respawn the test runner before `terminateApp`/simulator reboot.
6. After `launch-ready`, `awaitJetExitWithStallGuard` aborts if Jet has not exited within `RNFB_JET_AWAIT_EXIT_STALL_MS` (default 20m). That stall is **retryable once** via Jet attempt 2 (iOS sim reboot); orchestrate state `stall-kill-jet`.
6. After `launch-ready`, `awaitJetExitWithStallGuard` aborts if Jet has not exited within `RNFB_JET_AWAIT_EXIT_STALL_MS` (default 20m), or, on iOS only, earlier if Jet prints no test output (no `Jet tests on ios` title) within `RNFB_JET_FIRST_PROGRESS_MS` (default 5m): the app's JS never loaded, typically because the first Metro bundle request hit the 60s iOS request timeout on a saturated host. That stall is **retryable once** via Jet attempt 2 (iOS sim reboot); orchestrate state `stall-kill-jet`.

**Log markers** — `[rnfb-e2e] orchestrate-state=…`, `[jet-control] deferring server.run until POST /launch-ready`, `[jet-control] launch-ready received`, `[jet-control] server.run starting`, `[jet-control] listening on http://…:8091`, `[jet-coverage] …`, `Jet client connected`, `orchestrate-state=stall-kill-jet`.

Expand Down
1 change: 1 addition & 0 deletions okf-bundle/testing/e2e/slot-env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Part of [Running e2e tests](../running-e2e.md), split so a task loads only the s
| `RNFB_DETOX_STATUS_QUERY_TIMEOUT_MS`, `RNFB_DETOX_LOGIN_TIMEOUT_MS`, `RNFB_DETOX_DEBUG_SYNCHRONIZATION_MS`, `RNFB_LAUNCH_APP_TIMEOUT_MS`, `RNFB_LAUNCH_APP_RELEASE_TIMEOUT_MS`, `RNFB_LAUNCH_APP_MAX_ATTEMPTS` | Load-latency knobs. **Defaults live in** [`tests/e2e/detoxLatencyPolicy.js`](../../../tests/e2e/detoxLatencyPolicy.js). Detox Login / CurrentStatus floors also require the yarn patch ([detox-patches](../../ci-workflows/detox-patches.md)). Do not copy timeout numbers elsewhere |
| `RNFB_ANDROID_ADB_INSTALL_TIMEOUT_MS` | Android Detox `pm install` spawn timeout (policy default **300000ms**). **Defaults live in** [`tests/e2e/detoxLatencyPolicy.js`](../../../tests/e2e/detoxLatencyPolicy.js). Detox `ADB.js` patch hardcodes the same value at yarn apply time — env override does not reach Detox without patch regen ([detox-patches](../../ci-workflows/detox-patches.md)) |
| `RNFB_JET_AWAIT_EXIT_STALL_MS` | After `launch-ready`, abort if Jet has not exited within this window (policy default **1200000ms**). Stall sets `retryableAtJetLevel` so Jet **attempt 2** (+ iOS sim reboot) runs once. Log state `stall-kill-jet`. **Defaults live in** [`tests/e2e/detoxLatencyPolicy.js`](../../../tests/e2e/detoxLatencyPolicy.js) |
| `RNFB_JET_FIRST_PROGRESS_MS` | iOS only (off on Android and macOS). After `launch-ready`, abort if Jet output has no test progress (`Jet tests on ios` title or a numbered failure) within this window (policy default **300000ms**; healthy cells print the title within seconds). Same retryable stall as `RNFB_JET_AWAIT_EXIT_STALL_MS`. **Defaults live in** [`tests/e2e/detoxLatencyPolicy.js`](../../../tests/e2e/detoxLatencyPolicy.js) |
| `RNFB_E2E_SLOT` | Slot index for orchestration / AVD / sim naming. Set by `export-slot-env` — [slot index](environment.md#e2e-slot-index) |
| `GRADLE_USER_HOME` | Optional host setup only. Leave unset for the Gradle default (`~/.gradle`); slotted `export-slot-env` does not set or isolate it. If the host does not default to `$HOME/.gradle`, you may set `GRADLE_USER_HOME=$HOME/.gradle` — not a per-slot override |
| `RNFB_E2E_PLATFORM` | Optional orchestration label only — **not** used for port selection (prefer unset in slotted multi-platform launches) |
Expand Down
28 changes: 26 additions & 2 deletions packages/app/__tests__/detoxLatencyPolicy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const {
androidAdbSerialAppearTimeoutMs,
androidAdbInstallTimeoutMs,
jetAwaitExitStallTimeoutMs,
jetFirstProgressTimeoutMs,
} = require('../../../tests/e2e/detoxLatencyPolicy');

const repoRoot = path.resolve(__dirname, '../../..');
Expand Down Expand Up @@ -45,6 +46,7 @@ describe('detoxLatencyPolicy (UNI-9way-latency)', function () {
delete process.env.RNFB_ANDROID_ADB_SERIAL_APPEAR_TIMEOUT_MS;
delete process.env.RNFB_ANDROID_ADB_INSTALL_TIMEOUT_MS;
delete process.env.RNFB_JET_AWAIT_EXIT_STALL_MS;
delete process.env.RNFB_JET_FIRST_PROGRESS_MS;
expect(statusQueryTimeoutMs()).toBe(30000);
expect(loginTimeoutMs()).toBe(15000);
expect(debugSynchronizationMs()).toBe(30000);
Expand All @@ -54,6 +56,21 @@ describe('detoxLatencyPolicy (UNI-9way-latency)', function () {
expect(androidAdbSerialAppearTimeoutMs()).toBe(90000);
expect(androidAdbInstallTimeoutMs()).toBe(300000);
expect(jetAwaitExitStallTimeoutMs()).toBe(1200000);
expect(jetFirstProgressTimeoutMs('ios')).toBe(300000);
expect(jetFirstProgressTimeoutMs('android')).toBe(0);
expect(jetFirstProgressTimeoutMs('macos')).toBe(0);
});

it('NEGATIVE: RNFB_JET_FIRST_PROGRESS_MS does not turn the watch on for Android', function () {
process.env.RNFB_JET_FIRST_PROGRESS_MS = '120000';
expect(jetFirstProgressTimeoutMs('ios')).toBe(120000);
expect(jetFirstProgressTimeoutMs('android')).toBe(0);
});

it('negative: first-progress window stays well under the await-exit stall window', function () {
delete process.env.RNFB_JET_AWAIT_EXIT_STALL_MS;
delete process.env.RNFB_JET_FIRST_PROGRESS_MS;
expect(jetFirstProgressTimeoutMs('ios')).toBeLessThan(jetAwaitExitStallTimeoutMs() / 2);
});

it('negative: jest testTimeout 3600000 is not our Jet-await stall floor', function () {
Expand All @@ -75,8 +92,15 @@ describe('detoxLatencyPolicy (UNI-9way-latency)', function () {
expect(firebase).toMatch(/LAUNCH_APP_RELEASE_TIMEOUT_MS = launchAppReleaseTimeoutMs\(\)/);
expect(firebase).toMatch(/awaitJetExitWithStallGuard/);
expect(firebase).toMatch(/stall-diagnostics/);
expect(firebase).toMatch(/console\.error\(err\.message\)/);
expect(firebase).toMatch(/err\.retryableAtJetLevel\s*=\s*true/);
const stallGuard = fs.readFileSync(
path.join(repoRoot, 'tests/e2e/jetExitStallGuard.js'),
'utf8',
);
expect(firebase).toMatch(/require\('\.\/jetExitStallGuard'\)/);
expect(firebase).toMatch(/stallMs: jetAwaitExitStallTimeoutMs\(\)/);
expect(firebase).toMatch(/firstProgressMs: jetFirstProgressTimeoutMs\(platform\)/);
expect(stallGuard).toMatch(/console\.error\(err\.message\)/);
expect(stallGuard).toMatch(/err\.retryableAtJetLevel\s*=\s*true/);
expect(firebase).toMatch(/stall-kill-jet/);
expect(detoxrc).toMatch(/debugSynchronization:\s*30000/);
});
Expand Down
Loading
Loading