vitest.config.ts 402 B

123456789101112131415161718192021
  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. clearMocks: true,
  10. globals: true,
  11. coverage: {
  12. thresholds: {
  13. statements: 42.78,
  14. branches: 63.15,
  15. lines: 42.78,
  16. functions: 26.31,
  17. },
  18. },
  19. },
  20. });