summaryrefslogtreecommitdiff
path: root/tests/integration/node_compat_tests.rs
blob: 9dfd07ab44a9920ea1383d722f0efae847691a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

use test_util as util;
use test_util::itest;
use util::env_vars_for_npm_tests;

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,
});