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

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

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

Creates an async session that tracks all mocks created before the promise resolves.

Type Parameters

Self
Args extends unknown[]
Return

Parameters

func: (this: Self, ...args: Args) => Promise<Return>

Returns

(this: Self, ...args: Args) => Promise<Return>