From a4052e57fbabdf5e668d813fcc11004966759e49 Mon Sep 17 00:00:00 2001 From: Dalius Dobravolskas Date: Mon, 8 Jun 2020 15:35:24 +0300 Subject: [PATCH] Pass unused arguments to jest in library-flow (#2519) --- packages/yoshi-flow-library/src/commands/test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/yoshi-flow-library/src/commands/test.ts b/packages/yoshi-flow-library/src/commands/test.ts index 1098a145ca..c33fd27c9c 100644 --- a/packages/yoshi-flow-library/src/commands/test.ts +++ b/packages/yoshi-flow-library/src/commands/test.ts @@ -26,7 +26,7 @@ const test: cliCommand = async function(argv, config) { // Aliases '-h': '--help', }, - { argv }, + { argv, permissive: true }, ); const { '--help': help, '--watch': watch } = args; @@ -81,6 +81,7 @@ const test: cliCommand = async function(argv, config) { const jestCliOptions = [ require.resolve('jest/bin/jest'), `--rootDir=${process.cwd()}`, + ...args._, ]; watch && jestCliOptions.push('--watch');