-
Notifications
You must be signed in to change notification settings - Fork 100
/
vitest.projects.ts
46 lines (45 loc) · 1.06 KB
/
vitest.projects.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
42
43
44
45
46
import {defineWorkspace} from 'vitest/config';
export default defineWorkspace([
{
extends: './vite.config.ts',
test: {
name: 'web',
environment: 'jsdom',
setupFiles: './src/web/setupTests.js',
include: [
'src/web/**/*.{test,spec}.?(c|m)[jt]s?(x)',
'src/web/**/__tests__/*.?(c|m)[jt]s?(x)',
],
exclude: ['src/web/store/**'],
server: {
deps: {
inline: ['@greenbone/opensight-ui-components'],
},
},
},
},
{
extends: './vite.config.ts',
test: {
name: 'gmp',
environment: 'node',
setupFiles: './src/gmp/setupTests.js',
include: [
'src/gmp/**/*.{test,spec}.?(c|m)[jt]s?(x)',
'src/gmp/**/__tests__/*.?(c|m)[jt]s?(x)',
'src/__tests__/*.?(c|m)[jt]s?(x)',
],
},
},
{
extends: './vite.config.ts',
test: {
name: 'store',
environment: 'node',
include: [
'src/web/store/**/*.{test,spec}.?(c|m)[jt]s?(x)',
'src/web/store/**/__tests__/*.?(c|m)[jt]s?(x)',
],
},
},
]);