mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 22:32:04 +00:00
- Add root vitest.config.ts with projects array (replaces deprecated workspace) - Add name property to each project's vitest.config.ts for filtering - Update package.json test scripts to use vitest projects - Add vitest to root devDependencies This addresses the Vitest warning about multiple configs impacting performance by running all projects in a single Vitest process. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
624 B
TypeScript
25 lines
624 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
name: 'platform',
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
include: ['src/**/*.ts'],
|
|
exclude: ['src/**/*.d.ts', 'src/index.ts'],
|
|
thresholds: {
|
|
// Excellent coverage: 94.69% stmts, 80.48% branches, 97.14% funcs, 94.64% lines
|
|
// All files now have comprehensive tests
|
|
lines: 90,
|
|
functions: 95,
|
|
branches: 75,
|
|
statements: 90,
|
|
},
|
|
},
|
|
},
|
|
});
|