Skip to content

Commit

Permalink
refactor(cli/js/testing): Reduce testing interfaces (denoland/deno#4451)
Browse files Browse the repository at this point in the history
* Reduce "testing" interfaces
* Use a callback instead of a generator for Deno.runTests()
* Default RunTestsOptions::reportToConsole to true
* Compose TestMessage into a single interface
  • Loading branch information
nayeemrmn authored and caspervonb committed Jan 24, 2021
1 parent da02ed4 commit 3cad874
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion fs/walk_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const isWindows = Deno.build.os == "win";

export function testWalk(
setup: (arg0: string) => void | Promise<void>,
t: Deno.TestFunction,
t: () => void | Promise<void>,
ignore = false
): void {
const name = t.name;
Expand Down
2 changes: 0 additions & 2 deletions testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ Deno.test({
assertEquals({ hello: "world" }, { hello: "world" });
},
});

await Deno.runTests();
```

Short syntax (named function instead of object):
Expand Down

0 comments on commit 3cad874

Please sign in to comment.