Skip to content

refactor(tests): co-locate test files with source modules#41

Merged
evirunurm merged 1 commit into
mainfrom
refactor/co-locate-test-files
Mar 20, 2026
Merged

refactor(tests): co-locate test files with source modules#41
evirunurm merged 1 commit into
mainfrom
refactor/co-locate-test-files

Conversation

@evirunurm
Copy link
Copy Markdown
Owner

@evirunurm evirunurm commented Mar 19, 2026

Summary

  • Moves tests/validators.test.tsscripts/utils/validators.test.ts
  • Moves tests/renderErrorCard.test.tsscripts/renderers/renderErrorCard.test.ts
  • Moves tests/calcPercentages.test.tsscripts/renderers/calcPercentages.test.ts
  • Updates imports in each test file to use relative paths
  • Updates jest.config.js test pattern to **/*.test.ts
  • Removes tests/**/* from tsconfig.json include paths
  • Removes tests/**/*.ts glob from lint and format scripts in package.json
  • Deletes the now-empty tests/ directory

Closes #37.

Test plan

  • npm test — all 18 tests pass
  • npm run typecheck — no type errors
  • npm run lint — no lint errors

🤖 Generated with Claude Code

Move test files from flat tests/ directory to live alongside the source
they test. Update jest.config.js, tsconfig.json, and package.json globs
accordingly. Closes #37.
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-stats-uvqq Ready Ready Preview, Comment Mar 19, 2026 11:59pm

@evirunurm evirunurm self-assigned this Mar 20, 2026
@evirunurm evirunurm merged commit ff42f59 into main Mar 20, 2026
3 checks passed
@evirunurm evirunurm deleted the refactor/co-locate-test-files branch March 20, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 2: Co-locate test files with source

1 participant