How can I prevent Jest from running async tests concurrently?

Viewed 97

I'm writing a series of tests against a database. All tests take the following form:

test("Name", async ()=>{
    // I do not call done(). I didn't think I had to anymore,
    // and I get type errors if I do.
});

Unfortunately, this is causing concurrency issues. I'm not sure if that's down to background tasks on the DB, or Jest running tests concurrently. The tests work fine when run individually, so I know concurrency of some sort is the problem.

How can I make absolutely sure that Jest runs these async tests one at a time?

0 Answers
Related