diff options
author | Satya Rohith <me@satyarohith.com> | 2024-04-16 19:15:41 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 13:45:41 +0000 |
commit | 50223c5c532332f4a296b12b027f85429f529690 (patch) | |
tree | 75d4494d1ade596038ad52ac0241addcc3a124c2 /tests/integration/node_compat_tests.rs | |
parent | 0a7f46b8c29d67b579e4ffd4681aa5d0b7e30c6b (diff) |
fix(ext/node): dispatch beforeExit/exit events irrespective of listeners (#23382)
Closes https://github.com/denoland/deno/issues/23342
Closes https://github.com/denoland/deno/issues/21757
Diffstat (limited to 'tests/integration/node_compat_tests.rs')
-rw-r--r-- | tests/integration/node_compat_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration/node_compat_tests.rs b/tests/integration/node_compat_tests.rs index c4c4ba1fa..9dfd07ab4 100644 --- a/tests/integration/node_compat_tests.rs +++ b/tests/integration/node_compat_tests.rs @@ -21,3 +21,17 @@ itest!(node_test_module_no_sanitizers { // exit_code: 123, http_server: true, }); + +itest!( + node_process_beforeexit_exit_events_emitted_without_listeners { + args: "run node/process_beforeexit_exit_events.ts", + output: "node/process_beforeexit_exit_events.out", + exit_code: 0, + } +); + +itest!(web_node_events_dispatched_in_correct_order { + args: "run node/events_order.ts", + output: "node/events_order.out", + exit_code: 0, +}); |