Created
June 18, 2018 09:19
-
-
Save paulbjensen/2182fa46900591b61f485d4802f8257c to your computer and use it in GitHub Desktop.
Version 2 of the world.js file, part of an article on Medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
const api = require('api'); | |
const web = require('web'); | |
const { setWorldConstructor } = require('cucumber'); | |
const puppeteer = require('puppeteer'); | |
const scope = require('./support/scope'); | |
const World = function() { | |
scope.host = web.host; | |
scope.driver = puppeteer; | |
scope.context = {}; | |
scope.api = api; | |
scope.web = web; | |
}; | |
setWorldConstructor(World); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment