Repository navigation
Commit a5958c7
committed
test(ui): give the whole-tree scratch-dir sweep bases it can read in three ui/ script tests
The slow tier of `pnpm check:pm-dispatch-gates` runs only on push and
schedule, and since the ui/ import it reads ui/ sources too. Two of its
live-tree cases went red on three ui/ test files:
- check-node-esm-load.test.ts binds `dir` to a temp directory in most
tests and to `path.join(REPO_ROOT, 'packages/fields' | 'packages/auth')`
in two. The sweep does not track scope and an in-tree reading wins, so
every `mkdirSync(path.join(dir, ...))` read as a directory created in
ui/packages/fields. The two package-reading tests now say `pkgDir`.
- markdown-test-inputs.test.ts and select-affected-tests-wiring.test.ts
declared `let scratch = ''` and assigned the real temp base in
beforeAll. The empty literal read as a cwd-relative mkdtempSync base.
They now declare `let scratch: string;`, so the one assignment is the
only reading.
No gate changes. Tests unchanged in behaviour (86/86).
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HssnEmZ59WGARsErPSbRpf1 parent e167956 commit a5958c7
3 files changed
Lines changed: 12 additions & 12 deletions
File tree
- ui/scripts/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
| 372 | + | |
| 373 | + | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
| 384 | + | |
| 385 | + | |
386 | 386 | | |
387 | | - | |
388 | | - | |
389 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments