Fix initial args not being passed through to pw

This commit is contained in:
Daniel Imms
2023-09-10 08:56:19 -07:00
parent 6b1c1e0751
commit b91de01a4d
+1 -1
View File
@@ -35,7 +35,7 @@ function npmBinScript(script) {
async function run() {
for (const config of configs) {
const command = npmBinScript('playwright');
const args = ['test', '-c', config.path, ...argv.slice(2)];
const args = ['test', '-c', config.path, ...argv];
console.log(`Running suite \x1b[1;34m${config.name}...\x1b[0m`);
console.log(`\n\x1b[32m${command}\x1b[0m`, args);
const run = cp.spawnSync(command, args, {