-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathvitest.config.js
More file actions
41 lines (40 loc) · 1.44 KB
/
Copy pathvitest.config.js
File metadata and controls
41 lines (40 loc) · 1.44 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
// Root projects config for IDE integration (VS Code Vitest extension).
// E2e configs (vitest-e2e.config.js, ui's vitest-e2e-ssr.config.js)
// and the vite-plugin runtime variants are intentionally excluded —
// they boot servers/registries; run them via package scripts.
// Plain object (no defineConfig import): vitest is not installed at
// the workspace root, only in the packages.
export default {
test: {
projects: [
'./app-vite/vitest.config.js',
'./cli/vitest.config.js',
'./create-quasar/vitest.config.js',
'./docs/vitest.config.js',
'./utils/*/vitest.config.js',
// the ui and vite-plugin configs resolve their include/setup
// paths against their package root (their scripts' cwd), so
// they need their project root pinned there
{
extends: './ui/test/vitest.config.js',
test: { name: 'ui', root: './ui' }
},
{
extends: './ui/test/vitest.hydration.config.js',
test: { name: 'ui-hydration', root: './ui' }
},
{
extends: './ui/test/vitest.hydration-pwa.config.js',
test: { name: 'ui-hydration-pwa', root: './ui' }
},
{
extends: './vite-plugin/test/usage/vitest.config.js',
test: { name: 'vite-plugin-usage', root: './vite-plugin' }
},
{
extends: './vite-plugin/test/runtime/vitest.config.js',
test: { name: 'vite-plugin-runtime', root: './vite-plugin' }
}
]
}
}