Repository navigation
test(ios): cover the snapshot bridge source-root resolution - #3978
Conversation
Keep the single-root resolver's two outcomes — the root-relative bridge directory and native-source-missing — under the unit lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
Loop over SNAPSHOT_BRIDGE_SOURCE_FILENAMES, the list the resolver itself checks, so a new bridge file cannot drift the setup away from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR is ready at 6511d57. The new source-root tests look correct, all 16 checks pass, and there are no conflicts. I did not run the tests or the mutant locally, and I did not trace Not blocking, and you can take or leave these: the negative case at cache.test.ts#L176 uses an empty directory, so it would still pass if the removed |
|
Summary
Adds the unit-lane test that #3974's cache.ts change needed. That PR deleted the
dist/apple/snapshot-bridgepackaged fallback inresolveSnapshotBridgeSourceRoot; the maintainer merged it before this test landed, so the merged head failed the changed-line coverage gate (0/3) and main's single-root resolver has no unit coverage today. Test-only: one test asserting the two outcomes — the root-relativeapple/snapshot-bridgedirectory resolves, and a project root without it reportsnative-source-missing. The setup writes exactlySNAPSHOT_BRIDGE_SOURCE_FILENAMES(the list the resolver checks) and one shared options object varies onlyprojectRoot. 1 file.Validation
Head
6511d57893ona16d437237.pnpm check:affected --run --head 6511d57893: all runnable checks passed,exactCommit=true.cache.test.ts: 7 passed.git worktreeat this head's tree, per test-audit): break the root check's path (apple/snapshot-bridge→apple) → this test fails (1 failed | 6 passed; baseline 7 passed).git diff --stat origin/main...HEAD:Size Report: test-only, expect 0 B.
🤖 Generated with Claude Code