|
|
@@ -1,15 +1,16 @@
|
|
|
+import react from '@vitejs/plugin-react';
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
export default defineConfig({
|
|
|
plugins: [
|
|
|
- tsconfigPaths(),
|
|
|
+ react(), tsconfigPaths(),
|
|
|
],
|
|
|
test: {
|
|
|
globals: true,
|
|
|
environment: 'happy-dom',
|
|
|
include: [
|
|
|
- '**/*.test.tsx', '**/*.test.jsx',
|
|
|
+ '**/*.test.{tsx,jsx}',
|
|
|
],
|
|
|
},
|
|
|
});
|