Vitest · Method
vi.importActual
vi.importActual loads the real version of a module, even when Vitest has mocked it. It is mainly used to create partial mocks.
Last updated
Syntax
function importActual<T>(path: string): Promise<T>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.mockvi.importMockvi.unmockvi.doUnmockvi.hoisted