forked from Skyfay/DBackup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
32 lines (31 loc) · 1.05 KB
/
Copy pathvitest.config.ts
File metadata and controls
32 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/lib/testing/setup.ts'],
include: ['**/*.test.{ts,tsx}', '**/*.spec.{ts,tsx}'],
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**', '**/.{idea,git,cache,output,temp}/**', '**/.next/**', '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', 'tests/integration/**'],
coverage: {
provider: 'v8',
reporter: ['lcov', 'text'],
include: [
'src/lib/**/*.ts',
'src/services/**/*.ts',
],
exclude: [
'src/**/*.test.ts',
'src/**/*.spec.ts',
'src/lib/testing/**',
'src/lib/adapters/definitions.ts',
'src/lib/auth/index.ts',
'src/lib/auth/client.ts',
'src/lib/prisma.ts',
'src/lib/adapters/database/common/types.ts',
],
},
},
});