chore: starter template
This commit is contained in:
15
e2e/tests/support/world.ts
Normal file
15
e2e/tests/support/world.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user