Repository navigation
Commit a836be1
committed
test: drop cases that re-assert their own input or a stronger sibling
Eight tests could not fail for a reason worth hearing. Each was checked against
its production owner, its callers, and the stronger test that already covers it.
- `ax-digest.test.ts`: `computeAxDigest(nodes)` compared against a second call to
the same pure function — true by construction. The empty-array case kept its
`nodeCount` assertion and lost its self-comparison.
- `ios-snapshot-engine/conformance.test.ts`: replayed
`contracts/fixtures/ios-snapshot-capture-hint.json` through
`createIosSnapshotRequest` + `deriveIosCaptureHint` with the same four
assertions `ios-snapshot-planning.test.ts` makes one file away. The golden table
keeps its owning leg; only the second copy goes.
- `replay-coordinator-ownership.test.ts`: the divergence-chain import ban is a
strict subset of the `src/daemon/replay/`-wide scan beside it, same module and
same predicate, so it cannot fire without that one firing first.
- `device-claim-rule.test.ts`: compared production against a hand-copied test
table of the three rules the same file already asserts directly. Exhaustiveness
is production's own default-less switch.
- `snapshot-viewport-root.test.ts`: over the complete 31-name iOS vocabulary the
preceding case fixes, "equals `Application` or `Window`" is the same
proposition as "filters to exactly those two".
- `install-source-public.test.ts`: asserted the URL its sibling asserts at the
owner, plus a `typeof` probe. The subpath is proven by `package-exports` and by
the installed-tarball probe that calls through it.
- `metro-protocol-public.test.ts`: its runtime half repeated `metro-public.test.ts`
verbatim; the compile-time wire fixtures it also carried move there, so the
public metro surface has one test file mirroring `src/sdk/metro.ts`.
- `session-replay-command-trust.test.ts`: mocked the replay façade and read the
command field back. `session-replay-maestro-remote-evalscript.test.ts` drives
the same two real handlers and asserts the terminal `trustedScripts` the engine
receives. Proven by mutation: dropping the mapping in
`replay-dispatch-envelope.ts` turns that suite's two remote cases red.1 parent 2db7c42 commit a836be1
9 files changed
Lines changed: 48 additions & 268 deletions
File tree
- packages
- capture-kit/src
- ios-snapshot-engine
- snapshot/__tests__
- contracts/src
- src
- __tests__
- daemon
- __tests__
- device/__tests__
- handlers/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
| |||
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 14 | | |
49 | 15 | | |
50 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 4 | | |
14 | 5 | | |
15 | 6 | | |
| |||
54 | 45 | | |
55 | 46 | | |
56 | 47 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 48 | + | |
| 49 | + | |
62 | 50 | | |
63 | 51 | | |
64 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 170 | | |
178 | 171 | | |
179 | 172 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | 432 | | |
447 | 433 | | |
448 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 8 | + | |
17 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
This file was deleted.
0 commit comments