Files
Codewalkers/vitest.config.ts
Lukas May 03d55276a6 chore(01.1-01): install and configure Vitest test framework
- Add vitest as dev dependency
- Create vitest.config.ts with globals, TypeScript support, coverage
- Add npm scripts: test, test:watch, test:coverage
2026-01-30 13:53:00 +01:00

17 lines
435 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
// Enable test globals (describe, it, expect without imports)
globals: true,
// Test file pattern
include: ['**/*.test.ts'],
// TypeScript support uses tsconfig.json automatically
// Coverage reporter (optional, for future use)
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
},
});