summaryrefslogtreecommitdiff
path: root/vitest.config.ts
blob: bf89a81906f0c6fbefbe055d6db77e314b3dc329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [react()],
  test: {
    include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
    environment: 'jsdom',
    setupFiles: ['./src/test/setup.ts'],
    coverage: {
      provider: 'v8',
      include: ['src/client/**/*.{ts,tsx}', 'src/server/**/*.ts'],
      exclude: ['src/client/main.tsx'],
      thresholds: {
        lines: 70,
        statements: 70,
        branches: 55,
        functions: 70,
      },
    },
  },
});