mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
d8afd56838
This commit adds 4 more overloads to "Deno.test()" API. ``` // Deno.test(function testName() { }); export function test(fn: (t: TestContext) => void | Promise<void>): void; // Deno.test("test name", { only: true }, function() { }); export function test( name: string, options: Omit<TestDefinition, "name">, fn: (t: TestContext) => void | Promise<void>, ): void; // Deno.test({ name: "test name" }, function() { }); export function test( options: Omit<TestDefinition, "fn">, fn: (t: TestContext) => void | Promise<void>, ): void; // Deno.test({ only: true }, function testName() { }); export function test( options: Omit<TestDefinition, "fn" | "name">, fn: (t: TestContext) => void | Promise<void>, ): void; ``` |
||
---|---|---|
.. | ||
collect | ||
doc_only | ||
filter | ||
shuffle | ||
steps | ||
aggregate_error.out | ||
aggregate_error.ts | ||
allow_all.out | ||
allow_all.ts | ||
allow_none.out | ||
allow_none.ts | ||
clear_timeout.out | ||
clear_timeout.ts | ||
collect.out | ||
doc.out | ||
doc.ts | ||
doc_only.out | ||
exit_sanitizer.out | ||
exit_sanitizer.ts | ||
fail.out | ||
fail.ts | ||
fail_fast.out | ||
fail_fast.ts | ||
fail_fast_with_val.out | ||
fail_fast_with_val.ts | ||
filter.out | ||
finally_timeout.out | ||
finally_timeout.ts | ||
ignore.out | ||
ignore.ts | ||
ignore_permissions.out | ||
ignore_permissions.ts | ||
interval.out | ||
interval.ts | ||
load_unload.out | ||
load_unload.ts | ||
markdown.md | ||
markdown.out | ||
markdown_windows.md | ||
markdown_windows.out | ||
meta.out | ||
meta.ts | ||
no_check.out | ||
no_check.ts | ||
no_color.ts | ||
no_run.out | ||
no_run.ts | ||
only.out | ||
only.ts | ||
ops_sanitizer_unstable.out | ||
ops_sanitizer_unstable.ts | ||
overloads.out | ||
overloads.ts | ||
pass.out | ||
pass.ts | ||
quiet.out | ||
quiet.ts | ||
shuffle.out | ||
text.md | ||
text.out | ||
unhandled_rejection.out | ||
unhandled_rejection.ts | ||
unresolved_promise.out | ||
unresolved_promise.ts |