0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli/tests
Bartek Iwańczuk f526513d74
feat(core): show unresolved promise origin (#16650)
This commit updates unhelpful messages that are raised when event loop
stalls on unresolved top-level promises.

Instead of "Module evaluation is still pending but there are no pending
ops or dynamic imports. This situation is often caused by unresolved
promises." and "Dynamically imported module evaluation is still pending
but there are no pending ops. This situation is often caused by
unresolved promises." we are now printing a message like: 

error: Top-level await promise never resolved
[SOURCE LINE]
^
    at [FUNCTION NAME] ([FILENAME])

eg:
error: Top-level await promise never resolved
await new Promise((_resolve, _reject) => {});
^
at <anonymous>
(file:///Users/ib/dev/deno/cli/tests/testdata/test/unresolved_promise.ts:1:1)

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2022-11-28 23:07:23 +01:00
..
integration tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
testdata feat(core): show unresolved promise origin (#16650) 2022-11-28 23:07:23 +01:00
unit feat(unstable): rework Deno.Command (#16812) 2022-11-28 12:33:51 +01:00
bench_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
bundle_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
cache_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
cert_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
check_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
compile_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
coverage_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
doc_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
eval_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
flags_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
fmt_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
info_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
init_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
inspector_tests.rs fix(npm): allow to inspect npm modules with --inspect-brk (#16841) 2022-11-28 21:59:36 +01:00
install_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
js_unit_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
lint_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
lsp_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
npm_tests.rs fix(npm): allow to inspect npm modules with --inspect-brk (#16841) 2022-11-28 21:59:36 +01:00
repl_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
run_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
task_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
test_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
upgrade_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
vendor_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
watcher_tests.rs Revert "fix(ext/flash): graceful server startup/shutdown with unsettl… (#16839) 2022-11-27 04:50:14 +01:00
worker_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00