forked from greenbone/gsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.projects.ts
41 lines (40 loc) · 975 Bytes
/
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
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/**'],
},
},
{
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)',
],
},
},
]);