Skip to content

Instantly share code, notes, and snippets.

@mainfraame
Created November 2, 2020 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mainfraame/d2bf5b6fee9126a190f59f2ed3481825 to your computer and use it in GitHub Desktop.
Save mainfraame/d2bf5b6fee9126a190f59f2ed3481825 to your computer and use it in GitHub Desktop.
import { setWorldConstructor } from 'cucumber';
setWorldConstructor(
class World {
// this class gets instantiated before the tests start and
// the value created from that instatiation is what is available in hooks and steps as "this"
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment