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

x/deno_slack_hooks/dev_deps.ts>mockFetch.sandbox

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Go to Latest
function mockFetch.sandbox
import { mockFetch } from "https://deno.land/x/deno_slack_hooks@0.2.0/dev_deps.ts";
const { sandbox } = mockFetch;

Get a set of functions that do not share any state with the globals.

The returned object can be destructured.

const { fetch, mock, remove, reset } = sandbox()