-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 840 Bytes
/
vitest.config.ts
File metadata and controls
28 lines (27 loc) · 840 Bytes
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
import { defineConfig } from 'vite';
import tsConfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsConfigPaths()],
test: {
globals: true,
coverage: {
reporter: ['text', 'lcov', 'html'],
provider: 'v8',
exclude: [
'test/setup.ts', // setup de testes
'**/index.ts', // arquivos que apenas reexportam
'**/esbuild.config.js',
'**/vitest.config.ts',
'**/src/index.ts',
'**/config/**',
'**/core/routes/**',
'**/core/types/**',
'**/core/middlewares/error-handling.ts',
'**/infra/repositories/prisma-user-repository.ts', // se você só quiser testar com in-memory
'**/presentation/controllers/**',
'**/presentation/routes/**',
'**/presentation/validators/**',
],
},
},
});