Files
starter-e2e-mrf7gcl3/e2e/tests/support/world.ts
2026-07-10 19:24:06 +02:00

16 lines
638 B
TypeScript

import { setWorldConstructor } from '@cucumber/cucumber'
import { BrowserWorld } from '@pikku/cucumber/browser'
/**
* AppWorld — the app's cucumber world, built on @pikku/cucumber/browser.
*
* The package owns the browser lifecycle, the actor grammar ("the user",
* "the admin", they) and the generic step vocabulary. Extend this class for
* app-specific needs: override createClients() to expose the generated
* PikkuRPC/PikkuFetch on actors, override resetAppData() to call the app's
* reset RPC, or add helpers for per-domain *.steps.ts files.
*/
export class AppWorld extends BrowserWorld {}
setWorldConstructor(AppWorld)