-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (28 loc) · 804 Bytes
/
vitest.config.ts
File metadata and controls
29 lines (28 loc) · 804 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
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: ['packages/*', 'apps/docs'],
globals: true,
include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
testTimeout: 20_000,
coverage: {
provider: 'v8',
reporter: ['text', 'json'],
include: ['packages/0/src/**/*.ts', 'packages/0/src/**/*.vue'],
exclude: [
'**/*.test.ts',
'**/*.spec.ts',
'**/*.bench.ts',
'**/*.d.ts',
'**/types.ts',
'**/adapter.ts',
'**/fixtures/**',
// Barrel re-exports only (not implementation files)
'packages/0/src/index.ts',
'packages/0/src/*/index.ts',
'packages/0/src/components/*/index.ts',
'packages/0/src/*/*/adapters/index.ts',
],
},
},
})