Skip to content

Commit fd4908c

Browse files
thymikeeclaude
andcommitted
fix(check-affected): keep the unmeasured-directory list module-local (#3787)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent fd17f2d commit fd4908c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎docs/agents/test-authoring.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Do not add unit retries to hide failures.
5454
Use existing clocks or tool seams instead of production-time waits.
5555
Slow-test pins only shrink. A new pin needs measured justification.
5656
Do not extend test files over 1,000 lines. Split a test file only with its source module.
57-
A changed test file selects `check:test-file-size` in `pnpm check:affected`, because the ratchet measures the tree instead of importing it.
5857
Import the subject module, not a platform barrel.
5958

6059
## Run a focused test

‎scripts/lib/measured-test-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// tree instead of importing its subjects and so is invisible to Vitest's module graph.
44

55
export const MEASURED_TEST_ROOTS: readonly string[] = ['src', 'packages', 'test', 'scripts'];
6-
export const UNMEASURED_DIRECTORIES: ReadonlySet<string> = new Set([
6+
const UNMEASURED_DIRECTORIES: ReadonlySet<string> = new Set([
77
'node_modules',
88
'dist',
99
'dist-types',

0 commit comments

Comments
 (0)