I'm using Jest to run Selenium tests. I would like the login tests to happen before the rest of the webapp functionality tests. I'm able to run the files in sequence using jest -i
but I can't find a way to control the order that the files get run in. I tried changing the filenames hoping it is by sort order of filename but it still runs in the same order no matter what I call the files. How can this be done?
This is about running in a specific order, NOT sequentially. I'm already doing --runInBand
(-i
is an alias for that).