1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/cli/tests/testdata/test
Bartek Iwańczuk d8afd56838
feat(test): Add more overloads for "Deno.test" (#12749)
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;
```
2021-11-23 14:57:51 +01:00
..
collect feat(cli): add --ignore flag to test command (#11712) 2021-08-24 17:23:29 +02:00
doc_only fix(cli): retain path based test mode inference (#11878) 2021-09-01 18:31:56 +09:00
filter test(cli): add test for test filtering (#11672) 2021-08-13 11:33:18 +02:00
shuffle
steps feat(unstable/test): include test step pass/fail/ignore counts in final report (#12432) 2021-11-15 10:20:37 -05:00
aggregate_error.out fix(runtime/testing): format aggregate errors (#12183) 2021-09-30 21:54:56 +02:00
aggregate_error.ts fix(runtime/testing): format aggregate errors (#12183) 2021-09-30 21:54:56 +02:00
allow_all.out
allow_all.ts fix(runtime/ops/worker_host): move permission arg parsing to Rust (#12297) 2021-10-13 13:04:44 -04:00
allow_none.out
allow_none.ts
clear_timeout.out
clear_timeout.ts
collect.out feat(cli): add --ignore flag to test command (#11712) 2021-08-24 17:23:29 +02:00
doc.out
doc.ts
doc_only.out fix(cli): retain path based test mode inference (#11878) 2021-09-01 18:31:56 +09:00
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 test(cli): add test for test filtering (#11672) 2021-08-13 11:33:18 +02:00
finally_timeout.out
finally_timeout.ts
ignore.out
ignore.ts
ignore_permissions.out
ignore_permissions.ts
interval.out feat(cli): close test worker once all tests complete (#11727) 2021-09-04 20:19:26 +02:00
interval.ts feat(cli): close test worker once all tests complete (#11727) 2021-09-04 20:19:26 +02:00
load_unload.out fix(test): dispatch load event before tests are run (#11708) 2021-08-15 13:54:44 +02:00
load_unload.ts fix(test): dispatch load event before tests are run (#11708) 2021-08-15 13:54:44 +02:00
markdown.md fix(cli): explicitly scan for ignore attribute in inline tests (#11647) 2021-08-14 12:33:58 +02:00
markdown.out fix(cli): explicitly scan for ignore attribute in inline tests (#11647) 2021-08-14 12:33:58 +02:00
markdown_windows.md fix(test): support typechecking docs with CRLF line endings (#12748) 2021-11-15 09:58:04 -05:00
markdown_windows.out fix(test): support typechecking docs with CRLF line endings (#12748) 2021-11-15 09:58:04 -05:00
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 feat: provide ops details for ops sanitizer failures (#12188) 2021-10-11 17:00:33 +02:00
ops_sanitizer_unstable.ts feat: provide ops details for ops sanitizer failures (#12188) 2021-10-11 17:00:33 +02:00
overloads.out feat(test): Add more overloads for "Deno.test" (#12749) 2021-11-23 14:57:51 +01:00
overloads.ts feat(test): Add more overloads for "Deno.test" (#12749) 2021-11-23 14:57:51 +01:00
pass.out
pass.ts
quiet.out
quiet.ts
shuffle.out refactor(cli): introduce module specifier test modes (#11769) 2021-08-26 21:21:58 +02:00
text.md
text.out
unhandled_rejection.out
unhandled_rejection.ts
unresolved_promise.out feat(cli): close test worker once all tests complete (#11727) 2021-09-04 20:19:26 +02:00
unresolved_promise.ts feat(cli): close test worker once all tests complete (#11727) 2021-09-04 20:19:26 +02:00