18 lines
436 B
TypeScript
18 lines
436 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['tests/**/*.{test,spec}.ts'],
|
|
exclude: ['node_modules', 'dist'],
|
|
testTimeout: 15000,
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['src/**/*.ts'],
|
|
exclude: ['tests/**', 'dist/**', 'scripts/**', '**/*.test.ts'],
|
|
reporter: ['text', 'json', 'html'],
|
|
},
|
|
},
|
|
});
|