Skip to content

Instantly share code, notes, and snippets.

@paulbjensen
Created June 18, 2018 07:29
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 paulbjensen/10c433ac1c54e8cb233ebcf5760a2610 to your computer and use it in GitHub Desktop.
Save paulbjensen/10c433ac1c54e8cb233ebcf5760a2610 to your computer and use it in GitHub Desktop.
The world.js file for a
// Dependencies
const { setWorldConstructor } = require('cucumber');
const puppeteer = require('puppeteer');
const scope = require('./support/scope');
const World = function() {
scope.driver = puppeteer;
};
setWorldConstructor(World);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment