Testing · Middle · Question 41 of 75
What does globals: true in Vitest config do?
- ✓Correct answer: Makes
describe,it,expect,viavailable without imports, like in Jest - 2Shares variables between test files
- 3Runs tests in the global browser
Explanation
Without it you import them from vitest explicitly; add vitest/globals to TS types when enabling it.