forked from Bedrock-Ocean-Open-Source/tide-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
34 lines (33 loc) · 837 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
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
benchmark: {
include: ['__tests__/**/*.bench.*'],
exclude: ['node_modules'],
},
coverage: {
provider: 'v8',
extension: ['.ts', '.tsx'],
exclude: [
'node_modules',
'.storybook/**/*',
'__tests__/**/*',
'src/@types/**/*',
'src/stories/**/*',
'src/**/*.stories.tsx'
],
},
exclude: [ 'node_modules'],
environment: 'jsdom',
globals: true,
setupFiles: [],
onConsoleLog: (_, type) => (type === 'stderr' ? false : undefined),
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'#': fileURLToPath(new URL('./__tests__', import.meta.url)),
},
},
})