Fixed test script handling of unknown/additional args (#19209)
Brian Vaughn committed
Jun 29, 2020 at 15:36 UTC
9d9cf383c9c7114d5feb51f8092eb76a2c09d9b0
1 file changed
+1
-1
scripts/jest/jest-cli.js
+1
-1
@@ -258,7 +258,7 @@ function getCommandArgs() {
258
259
// Push the remaining args onto the command.
260
// This will send args like `--watch` to Jest.
261
- args.push(argv._);
261
+ args.push(...argv._);
262
263
return args;
264
}