I NEED Jest to run Sequentially for this


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


1 Like

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?

1 Like

I’m sure it will work - I was hoping to find help figuring out how to modify the aurelia task jest.js

1 Like