-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.js
More file actions
37 lines (36 loc) · 970 Bytes
/
vitest.config.js
File metadata and controls
37 lines (36 loc) · 970 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
29
30
31
32
33
34
35
36
37
import { defineConfig, configDefaults } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
clearMocks: true,
// Exclude MongoDB-related tests (MongoDB has been removed from the project)
exclude: [
...configDefaults.exclude,
'**/mongodb.test.js',
'**/mongo-lock.test.js',
'**/validate-mongo-uri.test.js',
'**/prisma-db-pull.js'
],
coverage: {
provider: 'v8',
reportsDirectory: './coverage',
reporter: ['text', 'lcov'],
include: ['src/**'],
exclude: [
...configDefaults.exclude,
'coverage',
// Exclude MongoDB files from coverage
'**/mongodb.js',
'**/mongo-lock.js',
'**/validate-mongo-uri.js',
'**/prisma-db-pull.js',
'**/.DS_Store',
'src/plugins/swagger/**',
'**/*.json',
'**/*.xlsx'
]
},
setupFiles: ['.vite/setup-files.js']
}
})