Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/testing.ts>mock.mockSessionAsync

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function mock.mockSessionAsync
import { mock } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/testing.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>