Skip to content

Commit 2cddc83

Browse files
CopilotStan2032
andcommitted
Address code review: add threshold comments to typescript-purity.test.ts
Co-authored-by: Stan2032 <68326386+Stan2032@users.noreply.github.com>
1 parent 5221a1b commit 2cddc83

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/test/typescript-purity.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,22 @@ describe('TypeScript purity', () => {
8080
expect(tsconfig.compilerOptions.strict).toBe(true);
8181
});
8282

83-
it('has at least 130 .tsx component/page files', () => {
83+
it('has at least 130 .tsx component/page files (currently 139)', () => {
8484
const tsxFiles = [
8585
...findFiles(resolve(SRC_DIR, 'components'), '.tsx'),
8686
...findFiles(resolve(SRC_DIR, 'pages'), '.tsx'),
8787
];
88+
// Floor set below current count (139) to allow refactoring while preventing mass deletion
8889
expect(tsxFiles.length).toBeGreaterThanOrEqual(130);
8990
});
9091

91-
it('has at least 180 .test.ts/.test.tsx test files', () => {
92+
it('has at least 180 .test.ts/.test.tsx test files (currently 189)', () => {
93+
// All test files are in src/test/ (flat directory, no subdirectories)
9294
const testDir = resolve(SRC_DIR, 'test');
9395
const testFiles = readdirSync(testDir).filter(
9496
f => f.endsWith('.test.ts') || f.endsWith('.test.tsx')
9597
);
98+
// Floor set below current count (189) to prevent test coverage regression
9699
expect(testFiles.length).toBeGreaterThanOrEqual(180);
97100
});
98101
});

0 commit comments

Comments
 (0)