chore(DIS-109): add vitest.config.ts, complete .env.example, test scripts #42
No reviewers
Labels
No labels
blocked
needs-review
phase:0
phase:1
phase:1.5
phase:2
phase:3
phase:4
phase:5
phase:6+
priority:p0
priority:p1
priority:p2
security
type:chore
type:ci
type:docs
type:feat
type:fix
type:idea
type:known-issue
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dev/disclaw#42
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-1/vitest-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
vitest.config.mtswith node environment and v8 coverage configurationtest:watchandtest:coveragescripts topackage.json@vitest/coverage-v8to devDependencies.env.examplewith all config fields documented fromsrc/config/loader.tsNotes
Used
.mtsextension (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.mtsextension forces the ES module loader, keeping the project source as CJS.npm run build && npm testandnpm run test:coverageall pass green.Test plan
npm run build� no TypeScript errorsnpm test� 35 tests pass across 7 test filesnpm run test:coverage� coverage report generated without errorsnpm run test:watch� vitest watch mode starts (manual)