Module

x/deno_slack_hooks/dev_deps.ts>mockFetch

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Latest
namespace mockFetch
import { mockFetch } from "https://dotland.deno.dev/x/deno_slack_hooks@1.3.0/dev_deps.ts";

Variables

Replace globalThis.fetch with mockedFetch (or another function that matches the fetch signature)

Mock a new route, or override an existing handler.

This is the function that replaces fetch when you call install().

Remove an existing route handler.

Remove all existing route handlers.

Restore globalThis.fetch to what it was before this library was imported.

Functions

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

Type Aliases

A handler type for a router path match which gets passed the matched values