2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-02-17 09:58:52 -05:00
|
|
|
|
|
|
|
use test_util as util;
|
2024-02-12 19:13:14 -05:00
|
|
|
use test_util::itest;
|
2023-08-29 15:02:54 -04:00
|
|
|
use util::env_vars_for_npm_tests;
|
2023-02-17 09:58:52 -05:00
|
|
|
|
2023-08-01 19:17:38 -04:00
|
|
|
itest!(node_test_module {
|
|
|
|
args: "test node/test.js",
|
|
|
|
output: "node/test.out",
|
2023-08-29 15:02:54 -04:00
|
|
|
envs: env_vars_for_npm_tests(),
|
2023-08-01 19:17:38 -04:00
|
|
|
exit_code: 1,
|
2023-08-29 15:02:54 -04:00
|
|
|
http_server: true,
|
2023-08-01 19:17:38 -04:00
|
|
|
});
|
2024-02-20 23:22:07 -05:00
|
|
|
|
|
|
|
itest!(node_test_module_no_sanitizers {
|
|
|
|
args: "test -A --no-check node/test_no_sanitizers/test.js",
|
|
|
|
output: "node/test_no_sanitizers/test.out",
|
|
|
|
envs: env_vars_for_npm_tests(),
|
2024-02-21 14:10:51 -05:00
|
|
|
exit_code: 0,
|
|
|
|
// TODO(mmastrac): fix exit sanitizer part of test
|
|
|
|
// exit_code: 123,
|
2024-02-20 23:22:07 -05:00
|
|
|
http_server: true,
|
|
|
|
});
|
2024-04-16 09:45:41 -04:00
|
|
|
|
|
|
|
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,
|
|
|
|
});
|