forked from jackwener/OpenCLI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
50 lines (48 loc) · 1.34 KB
/
vitest.config.ts
File metadata and controls
50 lines (48 loc) · 1.34 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 { defineConfig } from 'vitest/config';
const includeExtendedE2e = process.env.OPENCLI_E2E === '1';
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
include: ['src/**/*.test.ts'],
exclude: ['src/clis/**/*.test.ts'],
sequence: { groupOrder: 0 },
},
},
{
test: {
name: 'adapter',
include: ['src/clis/**/*.test.ts'],
sequence: { groupOrder: 1 },
},
},
{
test: {
name: 'e2e',
include: [
'tests/e2e/browser-public.test.ts',
'tests/e2e/band-auth.test.ts',
'tests/e2e/public-commands.test.ts',
'tests/e2e/management.test.ts',
'tests/e2e/output-formats.test.ts',
'tests/e2e/plugin-management.test.ts',
// Extended browser tests (20+ sites) — opt-in only:
// OPENCLI_E2E=1 npx vitest run
...(includeExtendedE2e ? ['tests/e2e/browser-public-extended.test.ts', 'tests/e2e/browser-auth.test.ts'] : []),
],
maxWorkers: 2,
sequence: { groupOrder: 2 },
},
},
{
test: {
name: 'smoke',
include: ['tests/smoke/**/*.test.ts'],
sequence: { groupOrder: 3 },
},
},
],
},
});