forked from graphql-hive/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.projects.ts
45 lines (44 loc) · 1.09 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
import { defineWorkspace } from 'vitest/config';
import { timeout as testTimeout } from './internal/e2e/src/timeout';
import { isCI, isNotPlatform } from './internal/testing/src/env';
export default defineWorkspace([
{
extends: './vitest.config.ts',
test: {
name: 'unit',
include: ['**/*.(test|spec).ts'],
},
},
{
extends: './vitest.config.ts',
test: {
name: 'e2e',
include: [
'**/*.e2e.ts',
...(isCI() && isNotPlatform('linux')
? [
// TODO: containers are not starting on non-linux environments
'!**/e2e/auto-type-merging',
'!**/e2e/neo4j-example',
'!**/e2e/soap-demo',
'!**/e2e/mysql-employees',
'!**/e2e/opentelemetry',
]
: []),
],
hookTimeout: testTimeout,
testTimeout,
},
},
{
extends: './vitest.config.ts',
test: {
name: 'bench',
hookTimeout: testTimeout,
testTimeout,
benchmark: {
include: ['bench/**/*.bench.ts', 'e2e/**/*.bench.ts'],
},
},
},
]);