-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathvitest.workspace.ts
41 lines (40 loc) · 1.03 KB
/
vitest.workspace.ts
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
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
import vue from '@vitejs/plugin-vue';
import { defineWorkspace } from 'vitest/config';
export default defineWorkspace([
{
extends: './vitest.config.mts',
plugins: [
vue({
features: { optionsAPI: false },
template: { transformAssetUrls },
}),
quasar({ sassVariables: 'src/quasar-variables.scss' }),
],
test: {
environment: 'happy-dom',
include: ['src/**/*.test.ts'],
name: 'quasar',
setupFiles: 'test/vitest/setup.quasar.ts',
},
},
{
extends: './vitest.config.mts',
test: {
environment: 'node',
include: ['src-electron/**/*.test.ts'],
name: 'electron',
setupFiles: 'test/vitest/setup.electron.ts',
},
},
{
extends: './vitest.config.mts',
plugins: [vue({ template: { transformAssetUrls } })],
test: {
environment: 'node',
include: ['docs/**/*.test.ts'],
name: 'docs',
setupFiles: 'test/vitest/setup.docs.ts',
},
},
]);