diff options
| author | Matt Mastracci <matthew@mastracci.com> | 2023-12-05 09:26:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-05 09:26:06 -0700 |
| commit | 4a9f42950140b36b1916ab0e0320d721223b1095 (patch) | |
| tree | 772f89bb86f9c9120700de6ae6859b0d9a704da6 /cli/tests | |
| parent | ce83a849a4612a170b08b4cd2a8e78c6456cdcf4 (diff) | |
refactor(cli): refactor bench/test for future module changes (#21460)
Extracting some refactorings for the module work that will land in
https://github.com/denoland/deno_core/pull/359/
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/testdata/bench/no_check.out | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/bench/unhandled_rejection.out | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/bench/unresolved_promise.out | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/cli/tests/testdata/bench/no_check.out b/cli/tests/testdata/bench/no_check.out index 1f90836eb..9548a4f3d 100644 --- a/cli/tests/testdata/bench/no_check.out +++ b/cli/tests/testdata/bench/no_check.out @@ -1,5 +1,9 @@ -error: Uncaught TypeError: Cannot read properties of undefined (reading 'fn') +error: TypeError: Cannot read properties of undefined (reading 'fn') Deno.bench(); ^ at [WILDCARD] at [WILDCARD]/bench/no_check.ts:1:6 +This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. +It most likely originated from a dangling promise, event/timeout handler or top-level code. + +error: Bench failed diff --git a/cli/tests/testdata/bench/unhandled_rejection.out b/cli/tests/testdata/bench/unhandled_rejection.out index 98c9e68b5..dba6d9ed4 100644 --- a/cli/tests/testdata/bench/unhandled_rejection.out +++ b/cli/tests/testdata/bench/unhandled_rejection.out @@ -1,7 +1,11 @@ Check [WILDCARD]/bench/unhandled_rejection.ts -error: Uncaught (in promise) Error: rejection +error: (in promise) Error: rejection reject(new Error("rejection")); ^ at [WILDCARD]/bench/unhandled_rejection.ts:2:10 at new Promise (<anonymous>) at [WILDCARD]/bench/unhandled_rejection.ts:1:1 +This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. +It most likely originated from a dangling promise, event/timeout handler or top-level code. + +error: Bench failed diff --git a/cli/tests/testdata/bench/unresolved_promise.out b/cli/tests/testdata/bench/unresolved_promise.out index b601e9b70..e5c53836a 100644 --- a/cli/tests/testdata/bench/unresolved_promise.out +++ b/cli/tests/testdata/bench/unresolved_promise.out @@ -3,3 +3,7 @@ error: Top-level await promise never resolved await new Promise((_resolve, _reject) => {}); ^ at <anonymous> ([WILDCARD]bench/unresolved_promise.ts:1:1) +This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. +It most likely originated from a dangling promise, event/timeout handler or top-level code. + +error: Bench failed |
