vitest.config.ts 536 B

123456789101112131415161718192021222324252627
  1. import { defineConfig } from 'vitest/config';
  2. export default defineConfig({
  3. test: {
  4. dir: './tests/unit',
  5. environment: 'node',
  6. coverage: {
  7. provider: 'v8',
  8. reporter: ['text', 'json', 'html'],
  9. statements: 80,
  10. branches: 80,
  11. functions: 80,
  12. lines: 80,
  13. exclude: [
  14. 'node_modules/',
  15. 'tests/',
  16. '**/*.test.ts',
  17. '**/*.spec.ts',
  18. 'dist/',
  19. '**/*.d.ts',
  20. 'vitest.config.ts'
  21. ]
  22. },
  23. testTimeout: 10000,
  24. globals: false
  25. }
  26. });