Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_slack_hooks/dev_deps.ts>mockFile.prepareLocalFile

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

Preload the file that will be opened/read later.

import { prepareLocalFile } from "https://deno.land/x/mock_file@$VERSION/mod.ts";

await prepareLocalFile("./path/to/file.txt")

const file = Deno.openSync("./path/to/file.txt")

Parameters

path: string | URL