-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvitest.config.ts
More file actions
35 lines (34 loc) · 1.08 KB
/
vitest.config.ts
File metadata and controls
35 lines (34 loc) · 1.08 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
import { configDefaults, defineConfig } from "vitest/config";
export default defineConfig({
test: {
coverage: {
exclude: [
...configDefaults.exclude,
'.storybook/**',
'src/entries/**',
'src/stories/**',
'docs_output/**',
'e2e/**',
'mocks/**',
'node_modules/**',
'lib/**',
'package/**',
'patches/**',
'tools/**',
'test-data/**',
'stdassets/**',
'storybook-static/**',
'viewer/**'
],
reporter: ['lcov', 'html'],
reportsDirectory: "./coverage-report"
},
alias: {
"\\.(jpg|jpeg|png|gif|cur|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/fileMock.js",
"\\.(css|less)$": "<rootDir>/mocks/styleMock.js"
},
setupFiles: ['./vitest-setup.ts'],
globals: true,
environment: 'jsdom'
}
})