Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(lock): nicer lockfile error (#4396)
Joel Einbinderdd3d49339d1e
diff --git a/src/install/installer.ts b/src/install/installer.tsindex d6134387f3..c8a2c97c26 100644--- a/src/install/installer.ts+++ b/src/install/installer.ts@@ -41,6 +41,7 @@ export async function installBrowsersWithProgressBar(packagePath: string) {const browsersPath = browserPaths.browsersPath(packagePath);await fsMkdirAsync(browsersPath, { recursive: true });+ const lockfilePath = path.join(browsersPath, '__dirlock');const releaseLock = await lockfile.lock(browsersPath, {retries: {retries: 10,@@ -49,7 +50,10 @@ export async function installBrowsersWithProgressBar(packagePath: string) {// See documentation at: https://www.npmjs.com/package/retry#retrytimeoutsoptionsfactor: 1.27579,},- lockfilePath: path.join(browsersPath, '__dirlock'),+ onCompromised: (err: Error) => {+ throw new Error(`${err.message} Path: ${lockfilePath}`);+ },+ lockfilePath,});const linksDir = path.join(browsersPath, '.links');