Closed ebrannin-bw closed 11 months ago
This also breaks VS Code's Jest integration, because it expects to run npm test -- --flag ...
and have the new arguments go to Jest.
I've fixed it in my repo by:
make-coverage-badge
from npm test
coverage-badge
as its own scriptnpm run all
, as in: && npm test && npm run coverage-badge
Hey @ebrannin-bw, thanks for catching that! I've submitted #805 to fix this error using the workaround you provided :)
The
npm test
script eats failures, and breaks&&
innpm run all
:Because it runs
make-coverage-badge
on test failure, when I runnpm run all
it will runnpm run package
even if tests fail.