-
-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathvitest.config.ts
More file actions
50 lines (49 loc) · 1.37 KB
/
vitest.config.ts
File metadata and controls
50 lines (49 loc) · 1.37 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['node_modules', 'dist', '.next'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{js,ts}'],
exclude: [
'src/**/*.{test,spec}.{js,ts}',
'src/**/*.d.ts',
'src/scripts/**',
'src/templates/**',
'src/routes/**',
'src/plugins/**',
'src/collections/**',
'src/index.ts',
'src/db/index.ts',
'src/types/**',
'src/content/rich-text.ts',
'src/content/versioning.ts',
'src/content/workflow.ts',
'src/services/migrations.ts',
'src/services/logger.ts',
'src/services/automation.ts',
'src/services/webhooks.ts',
'src/services/plugin-*.ts',
'src/services/collection-*.ts',
'src/middleware/bootstrap.ts',
'src/middleware/logging.ts',
'src/middleware/performance.ts',
'src/middleware/rate-limit-middleware.ts',
'src/utils/template-renderer-backup.ts',
'src/tests/**'
],
thresholds: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90
}
}
}
},
})