2026-02-12 15:13:04 +01:00
|
|
|
import { defineConfig } from 'vitest/config'
|
2026-02-12 19:33:29 +01:00
|
|
|
import vue from '@vitejs/plugin-vue'
|
2026-02-12 15:13:04 +01:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
2026-02-12 19:33:29 +01:00
|
|
|
plugins: [vue()],
|
2026-02-12 15:13:04 +01:00
|
|
|
test: {
|
2026-02-12 19:33:29 +01:00
|
|
|
include: [
|
|
|
|
|
'tests/unit/**/*.{test,spec}.js',
|
|
|
|
|
'tests/integration/**/*.{test,spec}.js',
|
|
|
|
|
'tests/component/**/*.{test,spec}.js',
|
|
|
|
|
'tests/stress/**/*.{test,spec}.js',
|
|
|
|
|
],
|
|
|
|
|
globals: true,
|
|
|
|
|
environment: 'node',
|
|
|
|
|
environmentMatchGlobs: [
|
|
|
|
|
['tests/component/**', 'happy-dom'],
|
|
|
|
|
],
|
2026-02-12 15:13:04 +01:00
|
|
|
},
|
|
|
|
|
})
|