For a very particular reason I need my big pre-existing jest suite to run sequentially
I know about the --runInBand flag but I can’t figure out where to put it
Help!
For a very particular reason I need my big pre-existing jest suite to run sequentially
I know about the --runInBand flag but I can’t figure out where to put it
Help!
The runInBand
is a Jest CLI command, I assume you already have the NPM package jest-cli
because you will need it. Then if you use an NPM script to run Jest through Jest CLI, you can run it this way
"test:coverage": "node_modules/.bin/jest --runInBand --coverage",
(this example also adds code coverage). You can also simplify the command if you have installed Jest globally, in that case you just use "test:coverage": "jest --runInBand --coverage",
. I demoed an NPM scripts, but basically you can run this command in the console as well (as long as you have Jest installed globally)
Is that what you were looking for?
I’m sure it will work - I was hoping to find help figuring out how to modify the aurelia task jest.js