Testing · Middle · Question 41 of 75

What does globals: true in Vitest config do?

Explanation

Without it you import them from vitest explicitly; add vitest/globals to TS types when enabling it.

Further reading

Problem with a question

Testing · Middle · question 41

Test yourself

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

Take this quiz