Overview
Tests live under two roots — src/__tests__/ and tests/ — plus colocated __tests__ directories inside src/components/ and src/services/, plus a _tests_ directory (single underscores) under src/components/dashboard/ that eslint.config.js explicitly ignores, plus two stray test files in report/ that Jest never picks up. Several modules have tests in both roots: axios.config.test.ts exists at src/__tests__/services/api/, tests/, and tests/services/api/ — three copies. This makes it impossible to know whether a module is tested without searching four locations.
Specifications
Features:
- One test-location convention, documented
- Duplicate test files merged
- The
_tests_ directory renamed and un-ignored
Tasks:
- Choose colocated
__tests__ or a top-level tests/ mirror and document the decision
- Merge the three
axios.config.test.ts copies and any other duplicates
- Rename
src/components/dashboard/_tests_/ and remove the ESLint ignore
- Move or delete the stray tests in
report/
- Update
jest.config.js roots and CONTRIBUTING.md
Impacted Files:
src/__tests__/
tests/
src/components/dashboard/_tests_/
report/
jest.config.js
CONTRIBUTING.md
Acceptance Criteria
- Tests live in one documented location
- No module has tests in two places
- Every test file is inside a Jest root
Overview
Tests live under two roots —
src/__tests__/andtests/— plus colocated__tests__directories insidesrc/components/andsrc/services/, plus a_tests_directory (single underscores) undersrc/components/dashboard/thateslint.config.jsexplicitly ignores, plus two stray test files inreport/that Jest never picks up. Several modules have tests in both roots:axios.config.test.tsexists atsrc/__tests__/services/api/,tests/, andtests/services/api/— three copies. This makes it impossible to know whether a module is tested without searching four locations.Specifications
Features:
_tests_directory renamed and un-ignoredTasks:
__tests__or a top-leveltests/mirror and document the decisionaxios.config.test.tscopies and any other duplicatessrc/components/dashboard/_tests_/and remove the ESLint ignorereport/jest.config.jsrootsandCONTRIBUTING.mdImpacted Files:
src/__tests__/tests/src/components/dashboard/_tests_/report/jest.config.jsCONTRIBUTING.mdAcceptance Criteria