main
| 1 | import { defineConfig } from 'vitest/config' |
| 2 | import react from '@vitejs/plugin-react' |
| 3 | import tsconfigPaths from 'vite-tsconfig-paths' |
| 4 | import { resolve } from 'path' |
| 5 | |
| 6 | export default defineConfig({ |
| 7 | plugins: [ |
| 8 | tsconfigPaths({ |
| 9 | configNames: ["tsconfig.tests.json"] |
| 10 | }), |
| 11 | react() |
| 12 | ], |
| 13 | test: { |
| 14 | environment: 'jsdom', |
| 15 | setupFiles: [resolve(__dirname, '../../vitest.setup.ts')], |
| 16 | }, |
| 17 | }) |
| 18 |