From 5bf69b667ec95bcdc8ce90d009cefe49907ac61e Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 17 Jun 2021 13:40:49 -0700 Subject: [PATCH] fix(test-runner): allow additional params when pw-test is not installed (#7200) --- src/cli/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli.ts b/src/cli/cli.ts index af0e863774..4bada0d151 100755 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -265,7 +265,7 @@ if (!process.env.PW_CLI_TARGET_LANG) { if (playwrightTestPackagePath) { require(playwrightTestPackagePath).addTestCommand(program); } else { - const command = program.command('test'); + const command = program.command('test').allowUnknownOption(true); command.description('Run tests with Playwright Test. Available in @playwright/test package.'); command.action(async (args, opts) => { console.error('Please install @playwright/test package to use Playwright Test.');