Skip to content

Glossary: Testing Web Apps

Hoisting

Also written: hoisted

Vitest moving `vi.mock` calls to the top of the file, before the imports run, so that every import of the mocked module gets the mock.

Where the book teaches it

Related terms

vi.mock