Skip to content

Glossary: Testing Web Apps

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.

Where the book teaches it

Related terms

GlobalStubfetch