Files
plex-playlist/frontend/vitest.config.ts
T

44 lines
1.0 KiB
TypeScript
Raw Normal View History

2026-06-19 17:00:57 -04:00
import { defineConfig } from 'vitest/config';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath, URL } from 'node:url';
2025-10-19 21:35:02 -04:00
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
2026-06-19 17:00:57 -04:00
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
2025-10-19 21:35:02 -04:00
},
test: {
environment: 'jsdom',
globals: true,
2026-06-19 17:00:57 -04:00
include: [
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'tests/unit/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
2025-10-30 12:25:45 -04:00
exclude: ['tests/e2e/**/*'],
setupFiles: ['./src/test-setup.ts'], // Automatically install Zod validation hooks
2025-10-19 21:35:02 -04:00
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'**/*.config.*',
'**/*.d.ts',
'coverage/',
'tests/',
2026-06-19 17:00:57 -04:00
'playwright.config.ts',
],
thresholds: {
global: {
lines: 85,
functions: 85,
branches: 85,
2026-06-19 17:00:57 -04:00
statements: 85,
},
},
},
},
});