-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvitest.config.ts
37 lines (36 loc) · 937 Bytes
/
vitest.config.ts
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';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [
tsconfigPaths({
configNames: ['tsconfig.node.json'],
}),
],
test: {
setupFiles: ['./vitest.setup.ts'],
environment: 'jsdom',
globals: true,
exclude: ['docs/*', ...configDefaults.exclude],
coverage: {
provider: 'v8',
reporter: ['html', 'json'],
include: [...(configDefaults.coverage.include || [])],
exclude: [
'**/*/devtools.ts',
'packages/**/dist/**',
'packages/playground/**',
'packages/test-utils/**',
'packages/starter-kits/**',
'./*.ts',
'./*.js',
'docs/*',
'scripts/**',
...(configDefaults.coverage.exclude || []),
],
},
},
define: {
__DEV__: JSON.stringify(true),
__VERSION__: JSON.stringify('1.0.0'),
},
});