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

x/deno_slack_hooks/dev_deps.ts>mockFile.prepareLocalFile

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Go to Latest
function mockFile.prepareLocalFile
import { mockFile } from "https://deno.land/x/deno_slack_hooks@0.2.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