jest-environment-puppeteer
Advanced tools
Comparing version 10.0.0 to 10.0.1
@@ -44,3 +44,8 @@ 'use strict'; | ||
const startBrowsers = async ({ config, jestConfig })=>{ | ||
const workersCount = getWorkersCount(jestConfig); | ||
saveWorkersCount(workersCount); | ||
if (config.connect?.browserWSEndpoint) { | ||
if (workersCount > 1) { | ||
throw new Error("Cannot use `connect.browserWSEndpoint` with multiple workers. Set Jest `maxWorkers` to 1."); | ||
} | ||
saveWsEndpoints([ | ||
@@ -51,4 +56,2 @@ config.connect.browserWSEndpoint | ||
} | ||
const workersCount = getWorkersCount(jestConfig); | ||
saveWorkersCount(workersCount); | ||
const browsers = await Promise.all(Array.from({ | ||
@@ -55,0 +58,0 @@ length: workersCount |
{ | ||
"name": "jest-environment-puppeteer", | ||
"description": "Puppeteer environment for Jest.", | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"type": "commonjs", | ||
@@ -58,3 +58,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "018b0100a8c99cb73610a5cb927296de66f4b0bb" | ||
"gitHead": "36128ede23ec62a98fa8eabaa36b40c461ea7342" | ||
} |
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
24820
476