Repository navigation
Commit b03b59e
committed
fix(test): mock daemon stop through the SUT's exact specifier
The move swapped the SUT to '@agent-device/daemon/daemon-stop' while the test
mocked the './testing/*' pattern alias. Vitest resolves both to one file in
the unit lane, so it passed there, but the mutation lane aliases only the
manifest's exact export entries (tracked-manifests), so inside the Stryker
sandbox the mock specifier resolved to a phantom id, the real module loaded,
and the dry run failed on zero cleanup calls. Mock the exact specifier the
SUT imports; the type import follows so the pair cannot drift.1 parent 237393f commit b03b59e
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments