1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-30 11:16:38 -05:00
denoland-deno/tests/integration/node_compat_tests.rs

38 lines
967 B
Rust
Raw Normal View History

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2023-02-17 09:58:52 -05:00
use test_util as util;
use test_util::itest;
use util::env_vars_for_npm_tests;
2023-02-17 09:58:52 -05:00
itest!(node_test_module {
args: "test node/test.js",
output: "node/test.out",
envs: env_vars_for_npm_tests(),
exit_code: 1,
http_server: true,
});
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(),
exit_code: 0,
// TODO(mmastrac): fix exit sanitizer part of test
// 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,
});