Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/di/tests/deps.ts>mock.restore

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function mock.restore
import { mock } from "https://deno.land/x/hex@0.5.15/src/di/tests/deps.ts";
const { restore } = mock;

Restores all mocks registered in the current session that have not already been restored. If an id is provided, it will restore all mocks registered in the session associed with that id that have not already been restored.

Parameters

optional
id: number