Testing · Junior · Question 14 of 78

Which files does Jest pick up as tests by default?

Explanation

The default is set by testMatch. Vitest uses a similar include pattern: **/*.{test,spec}.?(c|m)[jt]s?(x).

Further reading

Problem with a question

Testing · Junior · question 14

Test yourself

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

Take this quiz