vitest.config.components.ts 335 B

12345678910111213141516
  1. import react from '@vitejs/plugin-react';
  2. import tsconfigPaths from 'vite-tsconfig-paths';
  3. import { defineConfig } from 'vitest/config';
  4. export default defineConfig({
  5. plugins: [
  6. react(), tsconfigPaths(),
  7. ],
  8. test: {
  9. globals: true,
  10. environment: 'happy-dom',
  11. include: [
  12. '**/*.spec.{tsx,jsx}',
  13. ],
  14. },
  15. });