58986a2d74
v8 coverage instrumentation adds ~10x overhead to router-guard async tests, pushing past the 5000ms default. Audit #2 Phase 13 finding. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
686 B
TypeScript
22 lines
686 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import vuetify from 'vite-plugin-vuetify';
|
|
|
|
// Vitest config (фаза 2, Tooling §3.3 #23). Отдельно от vite.config.js
|
|
// чтобы не тащить laravel-vite-plugin в JSDOM-тестах.
|
|
export default defineConfig({
|
|
plugins: [vue(), vuetify({ autoImport: true })],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
testTimeout: 10000,
|
|
setupFiles: ['./tests/Frontend/setup.ts'],
|
|
include: ['tests/Frontend/**/*.{test,spec}.ts'],
|
|
server: {
|
|
deps: {
|
|
inline: ['vuetify'],
|
|
},
|
|
},
|
|
},
|
|
});
|