Testing · Junior · Question 23 of 78

What do it.only and it.skip do?

Explanation

Handy while debugging, but don't commit .only - it silently disables the other tests. Vitest fails a CI run that contains .only (allowOnly), and linters have rules against it.

Further reading

Problem with a question

Testing · Junior · question 23

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