mirror of
https://github.com/tester-army/e2e.git
synced 2026-11-22 18:19:48 +08:00
* feat!: the app is declared on its target; engines only drive it
The app under test moves from the engine's options to `targets: [{ engine,
app }]`: `url`, `bundleId`, `appPath`, `identity`, `environment`,
`launchArguments`, `permissions`, `command`, and `readyUrl`. `web()` and
`mobile()` refuse every moved option in one `INVALID_CONFIG` naming the
target block; `defineEngine({ app })` is gone and engines check what their
platform needs in `validateApp`. `requires: ['browser' | 'native-app']` is
derived from the target's app. Replay cache and session keys are byte for
byte what they were, pinned by target-identity.test.ts.
Dependency services are not part of this version: `services` anywhere, and
`web({ services })`, fail saying so. `app.command` on port 0 without a
command, and `reuseExisting` on a free port, are refused. An `e2e mcp`
open cancelled or disconnected mid-start stops what it started, and a hung
shared start is abandoned once no session waits on it.
* fix: review follow-ups: cancelled opens, abandoned starts, null targets, stale docs
* refactor: drop the moved-option messages; old app keys are unknown keys
* test: give the replaced-nodes suite a budget that survives a loaded runner
* test: size the replaced-nodes hook budget to its seven tests
25 lines
562 B
TypeScript
25 lines
562 B
TypeScript
import type { E2EConfig } from 'e2e';
|
|
import { web } from '@e2e-dev/web';
|
|
import { gateway } from 'ai';
|
|
|
|
export default {
|
|
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',
|
|
command: {
|
|
executable: 'npm',
|
|
args: ['run', 'dev'],
|
|
reuseExisting: true,
|
|
log: '.e2e/logs/app.log',
|
|
},
|
|
},
|
|
}],
|
|
} satisfies E2EConfig;
|