vitest.config.ts•875 B
import { defineConfig } from 'vitest/config'
import path from 'path'
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/**',
'dist/**',
'**/*.d.ts',
'**/*.config.*',
'**/mockData/**',
'chrome-extension/**', // Test separately with Playwright
],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
watchExclude: ['**/node_modules/**', '**/dist/**'],
},
resolve: {
alias: {
'@curupira/shared': path.resolve(__dirname, './shared/src'),
'@curupira/types': path.resolve(__dirname, './shared/src/types'),
},
},
})