diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 7 | ||||
-rw-r--r-- | cli/tests/testdata/fetch_async_error_stack.ts | 1 | ||||
-rw-r--r-- | cli/tests/testdata/fetch_async_error_stack.ts.out | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index aec17faf0..4411ff0c3 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2517,3 +2517,10 @@ itest!(wasm_streaming_panic_test { output: "wasm_streaming_panic_test.js.out", exit_code: 1, }); + +// Regression test for https://github.com/denoland/deno/issues/13897. +itest!(fetch_async_error_stack { + args: "run --quiet -A fetch_async_error_stack.ts", + output: "fetch_async_error_stack.ts.out", + exit_code: 1, +}); diff --git a/cli/tests/testdata/fetch_async_error_stack.ts b/cli/tests/testdata/fetch_async_error_stack.ts new file mode 100644 index 000000000..f583192c2 --- /dev/null +++ b/cli/tests/testdata/fetch_async_error_stack.ts @@ -0,0 +1 @@ +await fetch("https://nonexistent.deno.land/"); diff --git a/cli/tests/testdata/fetch_async_error_stack.ts.out b/cli/tests/testdata/fetch_async_error_stack.ts.out new file mode 100644 index 000000000..0a7b353e2 --- /dev/null +++ b/cli/tests/testdata/fetch_async_error_stack.ts.out @@ -0,0 +1,5 @@ +error: Uncaught (in promise) TypeError: error sending request for url[WILDCARD] +await fetch("https://nonexistent.deno.land/"); +^[WILDCARD] + at async fetch (deno:[WILDCARD]) + at async file:///[WILDCARD]/fetch_async_error_stack.ts:1:1 |