vitest.config.ts 494 B

12345678910111213141516171819202122232425
  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. 'src/index.ts'
  19. ]
  20. },
  21. testTimeout: 10000,
  22. globals: false
  23. }
  24. });