Vitest · Method
vi.unstubAllGlobals
vi.unstubAllGlobals() restores globals changed with vi.stubGlobal(). It also restores related browser globals in jsdom or happy-dom environments.
Last updated
Syntax
function unstubAllGlobals(): VitestIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.stubGlobalunstubGlobalsglobalThiswindow