fix: use of wrong launchOptions type in public API (#385)

This commit is contained in:
Max Schmitt
2025-05-09 14:16:04 +02:00
committed by GitHub
parent 053c2f3d32
commit 95ca08fdb7
4 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ const install = defineTool({
},
handle: async context => {
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.launchOptions.browserName ?? 'chrome';
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.browserName ?? 'chrome';
const cliUrl = import.meta.resolve('playwright/package.json');
const cliPath = path.join(fileURLToPath(cliUrl), '..', 'cli.js');
const child = fork(cliPath, ['install', channel], {