-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
vitest.config.ts
29 lines (27 loc) · 1.05 KB
/
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
/// <reference lib="es2021" />
import { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: [
{ find: '#arguments', replacement: resolve('src/lib/arguments') },
{ find: '#assets', replacement: resolve('src/lib/assets') },
{ find: '#jsonAssets', replacement: resolve('src/lib/assets') },
{ find: '#dexdata', replacement: resolve('src/lib/assets/pokedex-data') },
{ find: '#resolvers', replacement: resolve('src/lib/resolvers') },
{ find: '#types', replacement: resolve('src/lib/mapped-types') },
{ find: '#utils', replacement: resolve('src/lib/utils') },
{ find: '#validations', replacement: resolve('src/lib/validations') },
{ find: '#mappers', replacement: resolve('src/lib/mappers') },
{ find: '#root', replacement: resolve('src') },
{ find: '#test-utils', replacement: resolve('tests/testUtils') }
]
},
test: {
globals: true,
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'clover']
}
}
});