Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created January 15, 2020 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcomnes/fc55f4e1a56a0e8dfad11a140e12d3d0 to your computer and use it in GitHub Desktop.
Save bcomnes/fc55f4e1a56a0e8dfad11a140e12d3d0 to your computer and use it in GitHub Desktop.
deno test error
import {
assertEquals,
runTests,
test
} from "https://deno.land/std/testing/mod.ts";
test({
name: "testing example",
fn() {
assertEquals("world", "world");
assertEquals({ hello: "world" }, { hello: "world" });
}
});
runTests();
% deno test . --allow-env --allow-write --reload
Download https://deno.land/std@v0.26.0/testing/runner.ts
Compile https://deno.land/std@v0.26.0/testing/runner.ts
Download https://deno.land/std@v0.26.0/flags/mod.ts
Download https://deno.land/std@v0.26.0/fs/mod.ts
Download https://deno.land/std@v0.26.0/path/mod.ts
Download https://deno.land/std@v0.26.0/testing/mod.ts
Download https://deno.land/std@v0.26.0/fs/empty_dir.ts
Download https://deno.land/std@v0.26.0/fs/ensure_dir.ts
Download https://deno.land/std@v0.26.0/fs/ensure_file.ts
Download https://deno.land/std@v0.26.0/fs/ensure_link.ts
Download https://deno.land/std@v0.26.0/fs/ensure_symlink.ts
Download https://deno.land/std@v0.26.0/fs/exists.ts
Download https://deno.land/std@v0.26.0/fs/expand_glob.ts
Download https://deno.land/std@v0.26.0/fs/move.ts
Download https://deno.land/std@v0.26.0/fs/copy.ts
Download https://deno.land/std@v0.26.0/fs/read_file_str.ts
Download https://deno.land/std@v0.26.0/fs/write_file_str.ts
Download https://deno.land/std@v0.26.0/fs/read_json.ts
Download https://deno.land/std@v0.26.0/fs/write_json.ts
Download https://deno.land/std@v0.26.0/fs/walk.ts
Download https://deno.land/std@v0.26.0/fs/eol.ts
Download https://deno.land/std@v0.26.0/fs/utils.ts
Download https://deno.land/std@v0.26.0/path/win32.ts
Download https://deno.land/std@v0.26.0/path/posix.ts
Download https://deno.land/std@v0.26.0/path/constants.ts
Download https://deno.land/std@v0.26.0/path/constants.ts
Download https://deno.land/std@v0.26.0/path/interface.ts
Download https://deno.land/std@v0.26.0/path/glob.ts
Download https://deno.land/std@v0.26.0/path/globrex.ts
Download https://deno.land/std@v0.26.0/path/utils.ts
Download https://deno.land/std@v0.26.0/testing/asserts.ts
Download https://deno.land/std@v0.26.0/fmt/colors.ts
Download https://deno.land/std@v0.26.0/testing/diff.ts
Download https://deno.land/std@v0.26.0/testing/format.ts
Compile file:///Users/bret/Downloads/.deno.test.ts
Download https://deno.land/std/testing/mod.ts
Download https://deno.land/std/testing/asserts.ts
Download https://deno.land/std/testing/bench.ts
Download https://deno.land/std/testing/diff.ts
Download https://deno.land/std/testing/format.ts
Download https://deno.land/std/testing/runner.ts
Download https://deno.land/std/fmt/colors.ts
Download https://deno.land/std/testing/asserts.ts
Download https://deno.land/std/flags/mod.ts
Download https://deno.land/std/fs/mod.ts
Download https://deno.land/std/path/mod.ts
Download https://deno.land/std/fs/empty_dir.ts
Download https://deno.land/std/fs/ensure_dir.ts
Download https://deno.land/std/fs/ensure_file.ts
Download https://deno.land/std/fs/ensure_link.ts
Download https://deno.land/std/fs/ensure_symlink.ts
Download https://deno.land/std/fs/exists.ts
Download https://deno.land/std/fs/expand_glob.ts
Download https://deno.land/std/fs/move.ts
Download https://deno.land/std/fs/copy.ts
Download https://deno.land/std/fs/read_file_str.ts
Download https://deno.land/std/fs/write_file_str.ts
Download https://deno.land/std/fs/read_json.ts
Download https://deno.land/std/fs/write_json.ts
Download https://deno.land/std/fs/walk.ts
Download https://deno.land/std/fs/eol.ts
Download https://deno.land/std/path/win32.ts
Download https://deno.land/std/path/posix.ts
Download https://deno.land/std/path/constants.ts
Download https://deno.land/std/path/constants.ts
Download https://deno.land/std/path/interface.ts
Download https://deno.land/std/path/glob.ts
Download https://deno.land/std/path/globrex.ts
Download https://deno.land/std/path/utils.ts
Download https://deno.land/std/fs/utils.ts
error TS2345: Argument of type '{ recursive: boolean; }' is not assignable to parameter of type 'boolean'.
► https://deno.land/std/fs/empty_dir.ts:36:22
36 await mkdir(dir, { recursive: true });
~~~~~~~~~~~~~~~~~~~
error TS2345: Argument of type '{ recursive: boolean; }' is not assignable to parameter of type 'boolean'.
► https://deno.land/std/fs/empty_dir.ts:64:20
64 mkdirSync(dir, { recursive: true });
~~~~~~~~~~~~~~~~~~~
error TS2345: Argument of type '{ recursive: boolean; }' is not assignable to parameter of type 'boolean'.
► https://deno.land/std/fs/ensure_dir.ts:21:24
21 await mkdir(dir, { recursive: true });
~~~~~~~~~~~~~~~~~~~
error TS2345: Argument of type '{ recursive: boolean; }' is not assignable to parameter of type 'boolean'.
► https://deno.land/std/fs/ensure_dir.ts:44:22
44 mkdirSync(dir, { recursive: true });
~~~~~~~~~~~~~~~~~~~
Found 4 errors.
?1 Downloads %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment