34 lines
710 B
TypeScript
34 lines
710 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html', 'lcov'],
|
|
exclude: [
|
|
'node_modules/**',
|
|
'dist/**',
|
|
'coverage/**',
|
|
'tests/**',
|
|
'**/*.test.ts',
|
|
'**/*.test.js',
|
|
'**/*.config.ts',
|
|
'**/*.config.js',
|
|
'benchmarks/**',
|
|
'examples/**',
|
|
'docs/**'
|
|
],
|
|
include: ['src/**/*.ts', 'training/**/*.ts'],
|
|
all: true,
|
|
lines: 80,
|
|
functions: 80,
|
|
branches: 80,
|
|
statements: 80
|
|
},
|
|
testTimeout: 10000,
|
|
hookTimeout: 10000
|
|
}
|
|
});
|