-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathvitest.config.e2e.provider.ts
More file actions
34 lines (30 loc) · 946 Bytes
/
vitest.config.e2e.provider.ts
File metadata and controls
34 lines (30 loc) · 946 Bytes
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
import { defineConfig } from 'vitest/config';
import { e2eBaseTestConfig } from './vitest.config.e2e.base';
const provider = process.env.TAKT_E2E_PROVIDER;
if (!provider) {
throw new Error('TAKT_E2E_PROVIDER must be set');
}
const commonTests = [
'e2e/specs/add-and-run.e2e.ts',
'e2e/specs/worktree.e2e.ts',
'e2e/specs/pipeline.e2e.ts',
'e2e/specs/task-auto-pr.e2e.ts',
'e2e/specs/github-issue.e2e.ts',
'e2e/specs/structured-output.e2e.ts',
'e2e/specs/team-leader.e2e.ts',
'e2e/specs/team-leader-refill-threshold.e2e.ts',
];
const providerSpecificTests: Record<string, string[]> = {
codex: ['e2e/specs/codex-permission-mode.e2e.ts'],
opencode: ['e2e/specs/opencode-conversation.e2e.ts'],
claude: ['e2e/specs/claude-allowed-tools-pytest.e2e.ts'],
};
export default defineConfig({
test: {
...e2eBaseTestConfig,
include: [
...commonTests,
...(providerSpecificTests[provider] ?? []),
],
},
});