karma-sauce-launcher
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -68,3 +68,15 @@ "use strict"; | ||
this.on('kill', (doneFn) => __awaiter(this, void 0, void 0, function* () { | ||
yield Promise.all(connectedDrivers.map(driver => driver.quit())); | ||
yield Promise.all(connectedDrivers.map(driver => { | ||
try { | ||
return driver.quit(); | ||
} | ||
catch (e) { | ||
// We need to ignore the exception here because we want to make sure that Karma is still | ||
// able to retry connecting if Saucelabs itself terminated the session (and not Karma) | ||
// For example if the "idleTimeout" is exceeded and Saucelabs errored the session. See: | ||
// https://wiki.saucelabs.com/display/DOCS/Test+Didn%27t+See+a+New+Command+for+90+Seconds | ||
log.error('Could not quit the Saucelabs selenium connection. Failure message:'); | ||
log.error(e); | ||
} | ||
})); | ||
// Reset connected drivers in case the launcher will be reused. | ||
@@ -71,0 +83,0 @@ connectedDrivers = []; |
{ | ||
"name": "karma-sauce-launcher", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A Karma plugin. Launch any browser on SauceLabs!", | ||
"main": "./index.js", | ||
"scripts": { | ||
"build": "tsc -p src/ && cp package.json dist/" | ||
"build": "tsc -p src/ && cp package.json dist/", | ||
"run-example": "yarn build && yarn copy-dist-to-modules && yarn run-example-karma", | ||
"copy-dist-to-modules": "rm -rf node_modules/karma-sauce-launcher && mv dist/ node_modules/karma-sauce-launcher", | ||
"run-example-karma": "yarn karma start examples/karma.conf-ci.js" | ||
}, | ||
@@ -9,0 +12,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
33825
282
0