-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
31 lines (30 loc) · 830 Bytes
/
vitest.config.ts
File metadata and controls
31 lines (30 loc) · 830 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
import { defaultExclude, defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
conditions: [
'@blizzard-api/classic-wow-local',
'@blizzard-api/client-local',
'@blizzard-api/core-local',
'@blizzard-api/d3-local',
'@blizzard-api/hs-local',
'@blizzard-api/sc2-local',
'@blizzard-api/wow-local',
],
},
test: {
coverage: {
exclude: [
...defaultExclude,
//There's no reason to test the index files as they are just exporting what is already tested
'**/index.ts',
//Ignore the config files
'**/.prettierrc.js',
'**/vitest.workspace.ts',
],
provider: 'v8',
reporter: ['html', 'lcov'],
},
globals: true,
projects: ['packages/*'],
},
});