-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
74 lines (73 loc) · 2.57 KB
/
Copy pathvitest.config.ts
File metadata and controls
74 lines (73 loc) · 2.57 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
import { configDefaults, defineConfig } from 'vitest/config'
import { fileURLToPath } from 'node:url'
export default defineConfig({
resolve: {
alias: {
'qti-clockwork-app': fileURLToPath(
new URL('./engine/core/app/src/index.ts', import.meta.url)
),
'qti-clockwork-assets': fileURLToPath(
new URL('./engine/core/assets/src/index.ts', import.meta.url)
),
'qti-clockwork-audio': fileURLToPath(
new URL('./engine/core/audio/src/index.ts', import.meta.url)
),
'qti-clockwork-ecs': fileURLToPath(
new URL('./engine/core/ecs/src/index.ts', import.meta.url)
),
'qti-clockwork-events': fileURLToPath(
new URL('./engine/core/events/src/index.ts', import.meta.url)
),
'qti-clockwork-input': fileURLToPath(
new URL('./engine/core/input/src/index.ts', import.meta.url)
),
'qti-clockwork-scheduler': fileURLToPath(
new URL('./engine/core/scheduler/src/index.ts', import.meta.url)
),
'qti-clockwork-serialization': fileURLToPath(
new URL('./engine/core/serialization/src/index.ts', import.meta.url)
),
'qti-clockwork-math': fileURLToPath(
new URL('./engine/core/math/src/index.ts', import.meta.url)
),
'qti-clockwork-math/fixed': fileURLToPath(
new URL('./engine/core/math/src/fixed.ts', import.meta.url)
),
'qti-clockwork-math/vec2': fileURLToPath(
new URL('./engine/core/math/src/vec2.ts', import.meta.url)
),
'qti-clockwork-math/aabb': fileURLToPath(
new URL('./engine/core/math/src/aabb.ts', import.meta.url)
),
'qti-clockwork-tauri-bridge': fileURLToPath(
new URL('./engine/platform/tauri-bridge/src/index.ts', import.meta.url)
),
'qti-clockwork-gl': fileURLToPath(
new URL('./engine/renderer-webgl2/gl/src/index.ts', import.meta.url)
),
'qti-clockwork-materials': fileURLToPath(
new URL(
'./engine/renderer-webgl2/materials/src/index.ts',
import.meta.url
)
),
'qti-clockwork-passes': fileURLToPath(
new URL('./engine/renderer-webgl2/passes/src/index.ts', import.meta.url)
),
'qti-clockwork-shaders': fileURLToPath(
new URL(
'./engine/renderer-webgl2/shaders/src/index.ts',
import.meta.url
)
)
}
},
test: {
include: ['engine/**/*.test.ts', 'apps/**/*.test.ts'],
exclude: [...configDefaults.exclude, 'engine/core/physics/**/*.test.ts'],
environment: 'node',
globals: true,
maxWorkers: 1,
minWorkers: 1
}
})