I'm running Jest tests via npm test
. Jest runs tests in parallel by default. Is there any way to make the tests run sequentially?
I have some tests calling third-party code that relies on changing the current working directory.
CLI options are documented and also accessible by running the command jest --help
.
You'll see the option you are looking for : --runInBand
.