Testing · Senior · Question 17 of 75

A test passes alone but fails when the whole file runs. What is the likely cause?

Explanation

Run with random order (--sequence.shuffle in Vitest, --randomize in Jest) to surface such dependencies early.

Further reading

Problem with a question

Testing · Senior · question 17

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz