Attempt to actually load the fetch polyfill

This commit is contained in:
Antoine Gersant 2017-07-04 02:21:34 -07:00
parent 7cdfc73f0e
commit 2e8591a3f6
2 changed files with 23 additions and 14 deletions

View file

@ -1,17 +1,19 @@
{ {
"src_folders" : ["test/nightwatch"], "src_folders" : ["test/nightwatch"],
"globals": "test/nightwatch/globals.js",
"test_settings" : { "test_settings" : {
"default" : { "default" : {
"silent": true, "silent": true,
"screenshots" : { "exclude": "globals.js",
"enabled" : false, "screenshots" : {
"path" : "" "enabled" : false,
}, "path" : ""
"desiredCapabilities": { },
"browserName": "phantomjs", "desiredCapabilities": {
"javascriptEnabled" : true "browserName": "phantomjs",
} "javascriptEnabled" : true
} }
} }
}
} }

View file

@ -0,0 +1,7 @@
module.exports = {
before : function(cb) {
console.log("Requiring fetch polyfill");
require('whatwg-fetch');
cb();
}
};