From 0b1c70c7c8ef751b7544287c4469935ae998243a Mon Sep 17 00:00:00 2001 From: KalvinSon Date: Fri, 26 Oct 2018 19:42:27 +0300 Subject: [PATCH] chore(*): do not install WebDriver for Firefox to avoid error on CI See https://github.com/angular/webdriver-manager/issues/303 for details. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b500e1f..4faf686 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "test": "karma start karma.conf.js", "test-single-run": "npm test -- --single-run", "preupdate-webdriver": "npm install", - "update-webdriver": "webdriver-manager update", + "//": "Do not install the Firefox driver to work around https://github.com/angular/webdriver-manager/issues/303.", + "update-webdriver": "webdriver-manager update --gecko false", "preprotractor": "npm run update-webdriver", "protractor": "protractor e2e-tests/protractor.conf.js", "update-index-async": "node --eval \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/lib/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=lib/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\""