fix(test-runner): allow additional params when pw-test is not installed (#7200)
This commit is contained in:
parent
219e5138be
commit
5bf69b667e
|
|
@ -265,7 +265,7 @@ if (!process.env.PW_CLI_TARGET_LANG) {
|
||||||
if (playwrightTestPackagePath) {
|
if (playwrightTestPackagePath) {
|
||||||
require(playwrightTestPackagePath).addTestCommand(program);
|
require(playwrightTestPackagePath).addTestCommand(program);
|
||||||
} else {
|
} 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.description('Run tests with Playwright Test. Available in @playwright/test package.');
|
||||||
command.action(async (args, opts) => {
|
command.action(async (args, opts) => {
|
||||||
console.error('Please install @playwright/test package to use Playwright Test.');
|
console.error('Please install @playwright/test package to use Playwright Test.');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue