Files
archy-demo/neode-ui/vitest.config.ts
2026-03-17 02:14:04 +00:00

36 lines
787 B
TypeScript

import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
test: {
environment: 'jsdom',
globals: true,
root: '.',
passWithNoTests: true,
exclude: ['e2e/**', 'node_modules/**'],
coverage: {
provider: 'v8',
reporter: ['text', 'text-summary'],
include: [
'src/api/*.ts',
'src/stores/*.ts',
'src/composables/*.ts',
'src/utils/*.ts',
'src/services/*.ts',
'src/router/*.ts',
],
exclude: ['src/**/__tests__/**', 'src/**/*.d.ts', 'src/main.ts'],
thresholds: {
branches: 80,
},
},
}
})