Files
e2e/docs/examples/quickstart/e2e.command.config.ts
T

25 lines
622 B
TypeScript

import type { E2EConfig } from 'e2e';
import { createAgent } from 'e2e/agent';
import { playwright } from '@e2edev/playwright';
import { gateway } from 'ai';
export default {
agents: {
default: createAgent({
model: gateway('openai/gpt-5.6-luna'),
system: 'You are a thorough QA agent. Verify every outcome.',
}),
},
targets: [{
engine: playwright({
url: process.env.APP_URL ?? 'http://localhost:3000',
command: {
executable: 'npm',
args: ['run', 'dev'],
reuseExisting: true,
log: '.e2e/logs/app.log',
},
}),
}],
} satisfies E2EConfig;