test(e2e): simpan suite e2e (15 tes) + dokumentasi TESTING.md

This commit is contained in:
oxpoe committed 2026-10-09 08:31:35 +07:00
1 parent 8f75e8b442
commit c37440dae0
4 files changed
+192

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import type { E2EConfig } from 'e2e';
import { web } from '@e2e-dev/web';
import { gateway } from 'ai';
export default {
// The Vercel AI Gateway serves the model id and reads AI_GATEWAY_API_KEY, or the OIDC token of a linked Vercel project.
agents: {
default: {
model: gateway('openai/gpt-6-luna-fast'),
system: 'You are a thorough QA agent. Verify every outcome.',
},
},
targets: [{
engine: web(),
app: {
url: process.env.APP_URL ?? 'http://localhost:3000',
// Or let the runner start the dev server:
// command: { executable: 'npm', args: ['run', 'dev'] },
},
}],
} satisfies E2EConfig;