vitest.config.ts•691 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: [
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'tests/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
exclude: ['node_modules', 'dist', 'build'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'src/**/*.d.ts',
'src/**/*.config.ts',
'dist/',
'build/',
'coverage/',
'**/*.test.ts',
'**/*.spec.ts',
],
},
},
resolve: {
alias: {
'@': './src',
},
},
});