-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.ts
More file actions
100 lines (98 loc) · 3.26 KB
/
vitest.config.ts
File metadata and controls
100 lines (98 loc) · 3.26 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { fileURLToPath } from 'node:url';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
react({
babel: {
plugins: ['@lingui/babel-plugin-lingui-macro'],
},
}),
],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./src/test/setup.ts'],
passWithNoTests: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{ts,tsx}'],
exclude: [
'src/**/*.test.{ts,tsx}',
'src/**/*.spec.{ts,tsx}',
'src/**/index.ts',
'src/test/**',
'src/icons/**',
],
},
},
resolve: {
alias: [
{
find: '@uipath/apollo-core/icons/svg',
replacement: fileURLToPath(new URL('../apollo-core/src/icons/svg', import.meta.url)),
},
{
find: '@uipath/apollo-react/icons',
replacement: fileURLToPath(new URL('./src/icons/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/material/components',
replacement: fileURLToPath(new URL('./src/material/components/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/material/theme',
replacement: fileURLToPath(new URL('./src/material/theme/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/material',
replacement: fileURLToPath(new URL('./src/material/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/xyflow/react',
replacement: fileURLToPath(new URL('./src/canvas/xyflow/react.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/xyflow/system',
replacement: fileURLToPath(new URL('./src/canvas/xyflow/system.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/layouts',
replacement: fileURLToPath(new URL('./src/canvas/layouts/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/hooks',
replacement: fileURLToPath(new URL('./src/canvas/hooks/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/utils',
replacement: fileURLToPath(new URL('./src/canvas/utils/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/controls',
replacement: fileURLToPath(new URL('./src/canvas/controls/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/icons',
replacement: fileURLToPath(new URL('./src/canvas/icons/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/components',
replacement: fileURLToPath(new URL('./src/canvas/components/index.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/types',
replacement: fileURLToPath(new URL('./src/canvas/types.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas/constants',
replacement: fileURLToPath(new URL('./src/canvas/constants.ts', import.meta.url)),
},
{
find: '@uipath/apollo-react/canvas',
replacement: fileURLToPath(new URL('./src/canvas/index.ts', import.meta.url)),
},
],
},
});