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,9 +1,11 @@
{ {
"src_folders" : ["test/nightwatch"], "src_folders" : ["test/nightwatch"],
"globals": "test/nightwatch/globals.js",
"test_settings" : { "test_settings" : {
"default" : { "default" : {
"silent": true, "silent": true,
"exclude": "globals.js",
"screenshots" : { "screenshots" : {
"enabled" : false, "enabled" : false,
"path" : "" "path" : ""

View file

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