std/testing/mock.ts

Deno standard library
Go to Latest
function mockSessionAsync
import { mockSessionAsync } from "https://deno.land/std@0.146.0/testing/mock.ts?s=mockSessionAsync";

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

Type Parameters

Self[src]
Args extends unknown[][src]
Return[src]

Parameters

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

Returns

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