Skip to main content
Go to Latest
function mock.mockSession
import { mock } from "https://deno.land/x/deno_slack_sdk@1.0.1/dev_deps.ts";
const { mockSession } = mock;

Creates a session that tracks all mocks created before it's restored. If a callback is provided, it restores all mocks created within it.

Returns

number

Type Parameters

Self
Args extends unknown[]
Return

Parameters

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

Returns

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