chore(DIS-109): add vitest.config.ts, complete .env.example, test scripts #42

Merged
dev merged 1 commit from phase-1/vitest-setup into main 2026-04-09 15:12:38 +00:00
Owner

Summary

  • Add vitest.config.mts with node environment and v8 coverage configuration
  • Add test:watch and test:coverage scripts to package.json
  • Add @vitest/coverage-v8 to devDependencies
  • Complete .env.example with all config fields documented from src/config/loader.ts

Notes

Used .mts extension (instead of .ts) for the vitest config file to resolve an ESM/CJS conflict � the project uses CommonJS ("module": "commonjs") but vitest itself requires ESM-capable loading for its config. The .mts extension forces the ES module loader, keeping the project source as CJS.

npm run build && npm test and npm run test:coverage all pass green.

Test plan

  • npm run build � no TypeScript errors
  • npm test � 35 tests pass across 7 test files
  • npm run test:coverage � coverage report generated without errors
  • npm run test:watch � vitest watch mode starts (manual)
## Summary - Add `vitest.config.mts` with node environment and v8 coverage configuration - Add `test:watch` and `test:coverage` scripts to `package.json` - Add `@vitest/coverage-v8` to devDependencies - Complete `.env.example` with all config fields documented from `src/config/loader.ts` ## Notes Used `.mts` extension (instead of `.ts`) for the vitest config file to resolve an ESM/CJS conflict � the project uses CommonJS (`"module": "commonjs"`) but vitest itself requires ESM-capable loading for its config. The `.mts` extension forces the ES module loader, keeping the project source as CJS. `npm run build && npm test` and `npm run test:coverage` all pass green. ## Test plan - [ ] `npm run build` � no TypeScript errors - [ ] `npm test` � 35 tests pass across 7 test files - [ ] `npm run test:coverage` � coverage report generated without errors - [ ] `npm run test:watch` � vitest watch mode starts (manual)
dev added 1 commit 2026-04-09 15:08:55 +00:00
chore(DIS-109): add vitest.config.mts, complete .env.example, test scripts
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
fa176c74ef
Add vitest.config.mts with node environment and v8 coverage.
Add test:watch and test:coverage scripts to package.json.
Complete .env.example with all config fields from loader.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dev merged commit a7786aff30 into main 2026-04-09 15:12:38 +00:00
dev deleted branch phase-1/vitest-setup 2026-04-09 15:12:42 +00:00
Sign in to join this conversation.
No description provided.