mirror of
https://github.com/tester-army/e2e.git
synced 2026-12-02 04:36:06 +08:00
26 lines
817 B
TypeScript
26 lines
817 B
TypeScript
import type { E2EConfig } from 'e2e';
|
|
import { web } from '@e2e-dev/web';
|
|
import { gateway } from 'ai';
|
|
|
|
export default {
|
|
// The Vercel AI Gateway serves the model and reads AI_GATEWAY_API_KEY.
|
|
// Only tests that use `agent` need it; tests/deterministic.e2e.ts runs without one.
|
|
agents: {
|
|
default: {
|
|
model: gateway('openai/gpt-6-luna-fast'),
|
|
system: 'You are a thorough QA agent. Verify every outcome.',
|
|
},
|
|
},
|
|
targets: [
|
|
{
|
|
engine: web(),
|
|
app: {
|
|
url: 'http://localhost:4200',
|
|
// The runner starts the Angular dev server and waits for the URL to answer.
|
|
// Outside CI, a server you already started on that port is reused.
|
|
command: { executable: 'npm', args: ['run', 'dev'], reuseExisting: true },
|
|
},
|
|
},
|
|
],
|
|
} satisfies E2EConfig;
|