Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function mockSessionAsync
import { mockSessionAsync } from "https://deno.land/std@0.188.0/testing/mock.ts";

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>