What
Test files are located in src/test/ instead of the tests/ directory, mixing test code with source code.
Why
- Test files in
src/ may be included in production builds
- Violates the project convention where tests are in
tests/ (as documented in AGENTS.md)
- Makes it harder to distinguish test code from production code
Scope
Move test files from src/test/ to tests/unit/ and update imports.
Files to move:
src/test/cache.test.ts
src/test/course-cache-and-progress.test.ts
src/test/quiz-grading-and-warming.test.ts
Acceptance Criteria
Technical Context
- Source:
src/test/*.test.ts
- Destination:
tests/unit/
- Config:
tsconfig.json line 23: exclude: [node_modules, dist, tests]
- Test runner: Vitest (configured in package.json)
What
Test files are located in
src/test/instead of thetests/directory, mixing test code with source code.Why
src/may be included in production buildstests/(as documented in AGENTS.md)Scope
Move test files from
src/test/totests/unit/and update imports.Files to move:
src/test/cache.test.tssrc/test/course-cache-and-progress.test.tssrc/test/quiz-grading-and-warming.test.tsAcceptance Criteria
src/test/tests/unit/npm test)tsconfig.jsonexcludeincludestests(already configured)Technical Context
src/test/*.test.tstests/unit/tsconfig.jsonline 23:exclude: [node_modules, dist, tests]