We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3390457 + c075e08 commit d5823c4Copy full SHA for d5823c4
1 file changed
vite.config.js
@@ -1,3 +1,4 @@
1
+/// <reference types="vitest/config" />
2
import { defineConfig } from 'vite';
3
import react from '@vitejs/plugin-react';
4
import path from 'path';
@@ -11,4 +12,10 @@ export default defineConfig({
11
12
server: {
13
port: 5173,
14
},
15
+ test: {
16
+ globals: true,
17
+ environment: 'happy-dom',
18
+ include: ['src/__tests__/**/*.test.{ts,tsx}'],
19
+ setupFiles: ['src/__tests__/setup.ts'],
20
+ },
21
});
0 commit comments