-
Notifications
You must be signed in to change notification settings - Fork 17
/
vitest.config.mts
42 lines (41 loc) · 1.02 KB
/
vitest.config.mts
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
33
34
35
36
37
38
39
40
41
42
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
poolOptions: {
threads: {
singleThread: true,
},
},
pool: "threads",
watch: false,
environment: 'node',
setupFiles: ['test/envSetupHook.ts'],
reporters: ['default'],
coverage: {
provider: 'v8',
include: ['src/**/*.ts'],
exclude: [
'src/infrastructure/logger.ts',
'src/infrastructure/diConfig.ts',
'src/infrastructure/errors/publicErrors.ts',
'src/infrastructure/errors/internalErrors.ts',
'src/infrastructure/fakes/FakeAmplitude.ts',
'src/infrastructure/fakes/FakeNewrelicTransactionManager.ts',
'src/schemas/commonTypes.ts',
'src/server.ts',
'src/app.ts',
'src/**/*.spec.ts',
'src/**/*.test.ts',
],
reporter: ['text'],
all: true,
thresholds: {
lines: 90,
functions: 90,
branches: 85,
statements: 90,
},
},
},
})