-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathvitest.config.ts
More file actions
47 lines (46 loc) 路 1.29 KB
/
Copy pathvitest.config.ts
File metadata and controls
47 lines (46 loc) 路 1.29 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
36
37
38
39
40
41
42
43
44
45
46
47
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
plugins: [],
resolve: {
alias: {
'react-twc$': path.resolve(__dirname, './.jest/mocks/react-twc.js'),
'@': path.resolve(__dirname, './src'),
'#': path.resolve(__dirname, './src'),
config: path.resolve(__dirname, './src/config'),
types: path.resolve(__dirname, './src/types'),
utils: path.resolve(__dirname, './src/utils'),
features: path.resolve(__dirname, './src/features'),
resources: path.resolve(__dirname, './src/resources'),
},
},
test: {
environment: 'jsdom',
setupFiles: ['./.jest/setup.ts'],
exclude: ['node_modules', '/.next/'],
include: [
'src/**/test.ts',
'src/**/test.tsx',
'src/**/*.{test,spec}.{ts,tsx}',
],
coverage: {
enabled: true,
provider: 'v8',
include: ['src/**/*.{ts,tsx}'],
exclude: [
'src/pages/**/*.ts(x)?',
'src/templates/**/*.ts(x)?',
'src/services/**/*.ts(x)?',
'src/styles/**/*.ts',
'src/types/**/*.ts',
'src/app/**/*.ts(x)?',
'src/generators/**/*.ts(x)?',
'src/components/**/*.ts(x)?',
'**/*.d.ts',
'**/*.js',
'node_modules/',
'/.next/',
],
},
},
});