2026-03-27 14:50:34 +09:00
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
test: {
|
|
|
|
|
globals: true,
|
|
|
|
|
environment: 'node',
|
|
|
|
|
include: ['src/**/*.test.ts'],
|
|
|
|
|
coverage: {
|
|
|
|
|
provider: 'v8',
|
|
|
|
|
enabled: false,
|
2026-05-14 14:47:23 +09:00
|
|
|
all: true,
|
2026-03-27 14:50:34 +09:00
|
|
|
include: ['src/**/*.ts'],
|
|
|
|
|
exclude: [
|
|
|
|
|
'src/**/*.test.ts',
|
|
|
|
|
'src/index.ts',
|
|
|
|
|
'src/types/**', // pure type declarations
|
|
|
|
|
'src/enums/index.ts',
|
|
|
|
|
'src/validation/index.ts',
|
|
|
|
|
],
|
|
|
|
|
reporter: ['text', 'lcov', 'json-summary', 'html'],
|
|
|
|
|
reportsDirectory: './coverage',
|
|
|
|
|
thresholds: {
|
|
|
|
|
lines: 100,
|
|
|
|
|
functions: 100,
|
|
|
|
|
branches: 90,
|
|
|
|
|
statements: 100,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
testTimeout: 10_000,
|
|
|
|
|
},
|
|
|
|
|
});
|