2
0

vitest.config.ts 381 B

12345678910111213141516171819
  1. import tsconfigPaths from 'vite-tsconfig-paths';
  2. import { defineConfig } from 'vitest/config';
  3. export default defineConfig({
  4. plugins: [
  5. tsconfigPaths(),
  6. ],
  7. test: {
  8. environment: 'node',
  9. exclude: [
  10. '**/test/**', '**/*.spec.{tsx,jsx}',
  11. ],
  12. clearMocks: true,
  13. globals: true,
  14. coverage: {
  15. reportsDirectory: './coverage/unit',
  16. },
  17. },
  18. });