forked from Remitwise-Org/Remitwise-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
52 lines (50 loc) · 1.38 KB
/
Copy pathvitest.config.mjs
File metadata and controls
52 lines (50 loc) · 1.38 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
48
49
50
51
52
import { fileURLToPath } from 'node:url';
import path from 'node:path';
import { defineConfig } from 'vitest/config';
const rootDir = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
test: {
pool: 'threads',
singleThread: true,
include: [
'lib/contracts/**/*.test.ts',
'lib/**/*.test.ts',
'lib/**/*.test.tsx',
'tests/unit/**/*.test.ts',
'tests/unit/**/*.test.tsx',
'tests/unit/**/*.test.cjs',
'tests/integration/**/*.test.ts',
'tests/property/**/*.test.ts',
'tests/property/**/*.test.cjs',
'tests/session/**/*.test.ts',
'tests/session/**/*.test.cjs',
'tests/react/**/*.test.ts',
'tests/react/**/*.test.tsx',
'components/**/*.test.tsx',
],
environment: 'jsdom',
globals: true,
setupFiles: ['./vitest.setup.ts'],
deps: {
inline: ['@reduxjs/toolkit', 'recharts'],
},
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['lib/contracts/**/*.ts', 'app/**/*.ts', 'app/**/*.tsx', 'lib/**/*.ts', 'components/**/*.tsx'],
exclude: [
'lib/contracts/**/*.test.ts',
'lib/**/*.test.ts',
'lib/**/*.test.tsx',
'tests/**',
'components/**/*.test.tsx',
],
},
alias: {
'@': rootDir,
},
typecheck: {
tsconfig: './tsconfig.test.json',
},
},
});