Skip to main content
Module

x/deno_slack_sdk/dev_deps.ts>mock.mockSession

SDK for building Run on Slack apps using Deno
Go to Latest
function mock.mockSession
import { mock } from "https://deno.land/x/deno_slack_sdk@1.5.0/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