-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
34 lines (33 loc) · 810 Bytes
/
vitest.config.js
File metadata and controls
34 lines (33 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import vue from '@vitejs/plugin-vue'; // Added import
import { fileURLToPath, URL } from 'node:url';
export default defineConfig({
test: {
css: true,
plugins: [
react(),
vue() // Added vue plugin
],
globals: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
environment: 'node',
preview: {
port: 3000,
host: 'localhost',
},
setupFiles: ['./vitest-setup.js'],
transformMode: {
web: [/\.vue$/],
},
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json', 'mjs', '.vue'], // Added .vue
alias: {
'@': fileURLToPath(new URL('./e2e-test-project/src', import.meta.url))
},
},
});