0
When I run npm test
, the following script is executed:
node $(npm bin)/jest --no-cache --runInBand
I can pass arguments to an npm script using --
. The following:
npm test -- --inspect-brk
Would actually run:
node $(npm bin)/jest --no-cache --runInBand --inspect-brk
But I want to insert --inspect-brk
in the middle of the command, not at the end of it. Instead I would like:
node --inspect-brk $(npm bin)/jest --no-cache --runInBand
Which means I need some kind of placeholder. Something like:
node {passed in args} $(npm bin)/jest --no-cache --runInBand
How can I achieve this?
Cheers!