tdd-guard-vitest
v0.2.0
Published
Vitest reporter for TDD Guard
Readme
TDD Guard Vitest Reporter
Vitest reporter that captures test results for TDD Guard validation.
Requirements
- Node.js 18+
- Vitest 3.2.0+
- TDD Guard installed globally
Installation
npm install --save-dev tdd-guard-vitestConfiguration
Vitest Configuration
Add the reporter to your vitest.config.ts:
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
reporters: ['default', ['tdd-guard-vitest']],
},
})Workspace/Monorepo Configuration
For workspaces or monorepos, pass the project root path in the reporter options:
// vitest.config.ts in project root
import { defineConfig } from 'vitest/config'
import path from 'path'
export default defineConfig({
test: {
reporters: [
'default',
['tdd-guard-vitest', { projectRoot: path.resolve(__dirname) }],
],
},
})If your vitest config is in a workspace subdirectory, specify the absolute path to your project root in the options, for example { projectRoot: '/Users/username/projects/my-app' }.
More Information
- Test results are saved to
.claude/tdd-guard/data/test.json - See TDD Guard documentation for complete setup
License
MIT
