Skip to content

Commit

Permalink
Pass unused arguments to jest in library-flow (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
daliusd committed Jun 8, 2020
1 parent 995f16b commit a4052e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/yoshi-flow-library/src/commands/test.ts
Expand Up @@ -26,7 +26,7 @@ const test: cliCommand = async function(argv, config) {
// Aliases
'-h': '--help',
},
{ argv },
{ argv, permissive: true },
);

const { '--help': help, '--watch': watch } = args;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit a4052e5

Please sign in to comment.