1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/cli/tests
Bartek Iwańczuk 127b68df39
fix(core): run macrotasks and next ticks after polling dynamic imports (#17173)
This commit fixes handling of rejected promises in dynamic imports
evaluation.

Previously we were running callbacks for next ticks and macrotasks
_before_ polling
dynamic imports and checked for unhandled rejections immediately after.
This is wrong,
as `unhandledrejection` event is dispatched and its callbacks are run as
macrotasks.

This commit changes order of actions performed by the event loop to
following:
- poll async ops
- poll dynamic imports
- run next tick callbacks
- run macrotask callbacks
- check for unhandled promise rejections
2023-01-05 13:05:16 +01:00
..
integration tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
testdata fix(core): run macrotasks and next ticks after polling dynamic imports (#17173) 2023-01-05 13:05:16 +01:00
unit fix(ext/fetch): Guard against invalid URL before its used by reqwest (#17164) 2023-01-05 13:05:16 +01:00
bench_tests.rs feat(cli): support deno bench in the config file (#16608) 2022-12-10 02:30:47 +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 fix(cli): allow for specifying noErrorTruncation compiler option (#17127) 2023-01-05 13:04:38 +01:00
compile_tests.rs fix: respect the --quiet flag in more cases (#16998) 2022-12-09 10:54:24 -05:00
coverage_tests.rs chore: update to Rust 1.66.0 (#17078) 2023-01-05 13:03:11 +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 chore: update to Rust 1.66.0 (#17078) 2023-01-05 13:03:11 +01:00
info_tests.rs fix: respect the --quiet flag in more cases (#16998) 2022-12-09 10:54:24 -05:00
init_tests.rs feat(init): Generate main_bench.ts by default (#16786) 2022-12-10 00:34:08 +01:00
inspector_tests.rs feat: add --inspect-wait flag (#17001) 2022-12-12 15:33:30 +01:00
install_tests.rs fix: ignore local lockfile for deno install and uninstall (#17145) 2023-01-05 13:04:39 +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 fix(lsp/format): language formatter used should be based on language id (#17148) 2023-01-05 13:05:15 +01:00
npm_tests.rs fix(npm): conditional exports with --node-modules-dir (#17111) 2023-01-05 13:04:00 +01:00
repl_tests.rs fix(repl): errors shouldn't terminate repl (#17082) 2023-01-05 13:02:43 +01:00
run_tests.rs fix(core): run macrotasks and next ticks after polling dynamic imports (#17173) 2023-01-05 13:05:16 +01:00
task_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00
test_tests.rs fix(test): handle scenario where --trace-ops would cause an unhandled promise rejection (#16970) 2022-12-06 15:58:18 -05: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 fix(cli): do not clear screen for non-TTY environments in watch mode (#17129) 2023-01-05 13:04:00 +01:00
worker_tests.rs tests: move integration tests to separate modules (#16816) 2022-11-26 02:29:56 +01:00