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

x/deno_slack_sdk/dev_deps.ts>mock.mockSession

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