chore: follow up to exposing playwright config options (#289)

This commit is contained in:
Pavel Feldman
2025-04-29 08:53:03 -07:00
committed by GitHub
parent 4147e21a3a
commit 69703cc882
4 changed files with 5 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ export async function configFromCLIOptions(cliOptions: CLIOptions): Promise<Conf
const launchOptions: LaunchOptions = {
channel,
executablePath: cliOptions.executablePath,
headless: cliOptions.headless,
};
if (browserName === 'chromium')
@@ -126,7 +127,7 @@ async function loadConfig(configFile: string | undefined): Promise<Config> {
try {
return JSON.parse(await fs.promises.readFile(configFile, 'utf8'));
} catch (error) {
throw new Error(`Failed to load config file: ${configFile}`);
throw new Error(`Failed to load config file: ${configFile}, ${error}`);
}
}