Skip to content

Commit be53afb

Browse files
committed
fix: fixed vite
1 parent 4537cc3 commit be53afb

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

frontend/vite.config.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from 'vitest/config';
2+
import react from '@vitejs/plugin-react';
33

4-
// https://vite.dev/config/
54
export default defineConfig({
65
plugins: [react()],
7-
})
6+
test: {
7+
globals: true,
8+
environment: 'jsdom',
9+
css: true, // Optional: if you want to process CSS in tests
10+
deps: {
11+
optimizer: {
12+
web: {
13+
include: ['react', 'react-dom', 'react/jsx-dev-runtime'],
14+
},
15+
},
16+
},
17+
},
18+
});

0 commit comments

Comments
 (0)