managarten/vitest.config.ts
Till JS 983da8540e chore: remove orphaned jest.config.js, raise vitest coverage to 70%
- Delete jest.config.js (no jest dependency in any package.json, was dead config)
- Vitest is the sole test runner (already used by all packages)
- Raise coverage thresholds from 50% to 70% (lines, functions, branches, statements)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 14:11:03 +02:00

46 lines
973 B
TypeScript

import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
reportsDirectory: './coverage',
exclude: [
'node_modules/',
'dist/',
'build/',
'.next/',
'.svelte-kit/',
'.astro/',
'**/*.config.*',
'**/*.d.ts',
'**/types/**',
'**/__tests__/**',
'**/__mocks__/**',
'**/test/**',
],
thresholds: {
lines: 70,
functions: 70,
branches: 70,
statements: 70,
},
},
testTimeout: 10000,
hookTimeout: 10000,
teardownTimeout: 10000,
isolate: true,
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['node_modules', 'dist', 'build', '.next', '.svelte-kit', '.astro'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@manacore': path.resolve(__dirname, './packages'),
},
},
});