39 lines
846 B
TypeScript
39 lines
846 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test-setup.ts'], // Automatically install Zod validation hooks
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/',
|
|
'dist/',
|
|
'**/*.config.*',
|
|
'**/*.d.ts',
|
|
'coverage/',
|
|
'tests/',
|
|
'playwright.config.ts'
|
|
],
|
|
thresholds: {
|
|
global: {
|
|
lines: 85,
|
|
functions: 85,
|
|
branches: 85,
|
|
statements: 85
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|