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" : {
"default" : {
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "phantomjs",
"javascriptEnabled" : true
}
}
}
"test_settings" : {
"default" : {
"silent": true,
"exclude": "globals.js",
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "phantomjs",
"javascriptEnabled" : true
}
}
}
}

View file

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