Skip to content

Commit

Permalink
Import external dependencies with the import map (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeg authored Oct 30, 2023
1 parent 224f178 commit a3e81dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions/sample_function_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
assertEquals,
assertExists,
assertStringIncludes,
} from "https://deno.land/std@0.153.0/testing/asserts.ts";
} from "std/testing/asserts.ts";
import SampleFunction from "./sample_function.ts";
import * as mf from "https://deno.land/x/[email protected]/mod.ts";
import * as mf from "mock-fetch/mod.ts";

const { createContext } = SlackFunctionTester("sample_function");

Expand Down
4 changes: 3 additions & 1 deletion import_map.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"imports": {
"deno-slack-sdk/": "https://deno.land/x/[email protected]/",
"deno-slack-api/": "https://deno.land/x/[email protected]/"
"deno-slack-api/": "https://deno.land/x/[email protected]/",
"std/": "https://deno.land/[email protected]/",
"mock-fetch/": "https://deno.land/x/[email protected]/"
}
}

0 comments on commit a3e81dc

Please sign in to comment.