vitest.config.ts•625 B
import * as path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
globals: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*'],
exclude: ['src/**/*.test.ts', 'src/**/*.spec.ts'],
thresholds: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
},
include: ['**/*.{test,spec}.{ts,tsx}'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});