Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/actionify/tests/deps.ts>mockSessionAsync

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function mockSessionAsync
import { mockSessionAsync } from "https://deno.land/x/actionify@0.3.0/tests/deps.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>