vitest.config.ts 404 B

12345678910111213141516
  1. import tsconfigPaths from 'vite-tsconfig-paths';
  2. import { defineConfig } from 'vitest/config';
  3. export default defineConfig({
  4. plugins: [tsconfigPaths()],
  5. test: {
  6. environment: 'node',
  7. clearMocks: true,
  8. globals: true,
  9. environmentMatchGlobs: [
  10. // Use jsdom for client-side tests
  11. ['**/client/**/*.spec.ts', 'jsdom'],
  12. ['**/client/**/*.test.ts', 'jsdom'],
  13. ],
  14. },
  15. });