16 lines
638 B
TypeScript
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)
|