@web/test-runner-chrome
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -44,4 +44,4 @@ "use strict"; | ||
launchBrowser(options = {}) { | ||
const mergedOptions = Object.assign(Object.assign({ headless: 'new' }, this.launchOptions), options); | ||
if (this.customPuppeteer) { | ||
const mergedOptions = Object.assign(Object.assign({}, this.launchOptions), options); | ||
// launch using a custom puppeteer instance | ||
@@ -58,3 +58,2 @@ return this.customPuppeteer.launch(mergedOptions).catch(error => { | ||
// launch using puppeteer-core, connecting to an installed browser | ||
const mergedOptions = Object.assign(Object.assign({}, this.launchOptions), options); | ||
// add a default executable path if the user did not provide any | ||
@@ -61,0 +60,0 @@ if (!mergedOptions.executablePath) { |
{ | ||
"name": "@web/test-runner-chrome", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"publishConfig": { | ||
@@ -48,3 +48,3 @@ "access": "public" | ||
"dependencies": { | ||
"@web/test-runner-core": "^0.11.0", | ||
"@web/test-runner-core": "^0.11.2", | ||
"@web/test-runner-coverage-v8": "^0.7.0", | ||
@@ -51,0 +51,0 @@ "chrome-launcher": "^0.15.0", |
@@ -82,4 +82,8 @@ import * as puppeteerCore from 'puppeteer-core'; | ||
launchBrowser(options: PuppeteerNodeLaunchOptions = {}) { | ||
const mergedOptions: PuppeteerNodeLaunchOptions = { | ||
headless: 'new', | ||
...this.launchOptions, | ||
...options, | ||
}; | ||
if (this.customPuppeteer) { | ||
const mergedOptions = { ...this.launchOptions, ...options }; | ||
// launch using a custom puppeteer instance | ||
@@ -99,4 +103,2 @@ return this.customPuppeteer.launch(mergedOptions).catch(error => { | ||
// launch using puppeteer-core, connecting to an installed browser | ||
const mergedOptions = { ...this.launchOptions, ...options }; | ||
// add a default executable path if the user did not provide any | ||
@@ -103,0 +105,0 @@ if (!mergedOptions.executablePath) { |
Sorry, the diff of this file is not supported yet
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
698
43676
+ Added@types/express-serve-static-core@5.0.1(transitive)
+ Added@types/node@22.9.1(transitive)
- Removed@types/express-serve-static-core@5.0.2(transitive)
- Removed@types/node@22.9.4(transitive)