-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.workspace.ts
More file actions
50 lines (49 loc) · 1.22 KB
/
vitest.workspace.ts
File metadata and controls
50 lines (49 loc) · 1.22 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
42
43
44
45
46
47
48
49
50
import { defineWorkspace } from 'vitest/config';
export default defineWorkspace([
{
extends: './vitest.config.ts',
test: {
name: 'unit',
root: '.',
include: ['tests/unit/**/*.spec.ts'],
environment: 'node',
testTimeout: 10000,
},
},
{
extends: './vitest.config.ts',
test: {
name: 'integration',
root: '.',
include: ['tests/integration/blocks/**/*.spec.ts'],
environment: 'node',
globalSetup: './tests/integration/setup/global-setup.ts',
globalTeardown: './tests/integration/setup/global-teardown.ts',
testTimeout: 30000,
hookTimeout: 60000,
},
},
{
extends: './vitest.config.ts',
test: {
name: 'workflows',
root: '.',
include: ['tests/integration/workflows/**/*.spec.ts'],
environment: 'node',
globalSetup: './tests/integration/setup/global-setup.ts',
globalTeardown: './tests/integration/setup/global-teardown.ts',
testTimeout: 60000,
hookTimeout: 120000,
},
},
{
extends: './vitest.config.ts',
test: {
name: 'contracts',
root: '.',
include: ['tests/contracts/**/*.spec.ts'],
environment: 'node',
testTimeout: 10000,
},
},
]);