vi.stubGlobal
Also written: vi.unstubAllGlobals
A Vitest call that replaces a global such as fetch for the current test file. `vi.unstubAllGlobals()` puts the real one back.
Also written: vi.unstubAllGlobals
A Vitest call that replaces a global such as fetch for the current test file. `vi.unstubAllGlobals()` puts the real one back.