Commit c9df758
committed
test(rest): pay the spec subpath loads at module scope in the door suite
`pnpm check:test-source-alias` reds on a `@objectstack/spec/*` dynamic import
first paid inside a clocked window: this package resolves both specifiers
through `dist/`, so the first call transforms that graph while a testTimeout
runs. Side-effect imports at module top move the transform into collection,
which vitest clocks against nothing. The dynamic calls are unchanged.
Claude-Session: https://claude.ai/code/session_01DapQyvYrFb1MxSYe7BL2nt
Co-authored-by: Claude <noreply@anthropic.com>1 parent c8026f6 commit c9df758
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
| |||
0 commit comments