I've 2 test files, test1.js and test2.js. I want to run them in sequence, test 1 then run test2. Is there a way to do it?
Asked
Active
Viewed 674 times
1
-
If you came up with a different solution, please share it otherwise, if it was helpful, accept my answer. Both could be useful to other users – NoriSte May 07 '19 at 07:44
1 Answers
2
Use the runInBand
option of Jest (runInBand
doesn't care about the order of the tests, obviously. In case you need to preserve the order of the tests, you're probably doing them wrong).

NoriSte
- 3,589
- 1
- 19
- 18