Skip to main content
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@1.2.2/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()