Skip to content

Colocate tests with source files#37

Merged
tomkp merged 1 commit intomasterfrom
feat/colocate-tests
Dec 28, 2025
Merged

Colocate tests with source files#37
tomkp merged 1 commit intomasterfrom
feat/colocate-tests

Conversation

@tomkp
Copy link
Copy Markdown
Owner

@tomkp tomkp commented Dec 28, 2025

Summary

  • Moves test files from test/ to src/ alongside their corresponding source files
  • Updates imports to use relative paths
  • Configures tsconfig, vitest, and ESLint to handle colocated tests

Changes

  • command-apdu.test.tssrc/command-apdu.test.ts
  • response-apdu.test.tssrc/response-apdu.test.ts
  • iso7816-application.test.tssrc/iso7816-application.test.ts

Test plan

  • All 35 tests pass
  • Test files excluded from dist (verified with npm pack --dry-run)
  • ESLint passes
  • Prettier passes

Fixes #36

- Move test files from test/ to src/ alongside their corresponding source files
- Update imports to use relative paths
- Exclude test files from TypeScript compilation (tsconfig.json)
- Exclude test files from coverage metrics (vitest.config.ts)
- Exclude test files from ESLint type-aware linting
- Update format scripts to target src/ only

Fixes #36
@tomkp tomkp merged commit 6af387f into master Dec 28, 2025
3 checks passed
@tomkp tomkp deleted the feat/colocate-tests branch December 28, 2025 16:38
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.

Colocate tests with source files

1 participant