Skip to content

Commit

Permalink
pass arguments to jest cli (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer0x authored and amilajack committed Aug 2, 2017
1 parent 4fbc202 commit bbeff7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const pattern = process.argv[2] === 'e2e'
? `test${s}e2e${s}.+\\.spec\\.js`
: `test${s}(?!e2e${s})[^${s}]+${s}.+\\.spec\\.js$`;

const result = spawn.sync(path.normalize('./node_modules/.bin/jest'), [pattern], { stdio: 'inherit' });
const result = spawn.sync(
path.normalize('./node_modules/.bin/jest'),
[pattern, ...process.argv.slice(2)],
{ stdio: 'inherit' }
);

process.exit(result.status);

0 comments on commit bbeff7a

Please sign in to comment.