deno/tests/node_compat/test_runner.rs
Bartek Iwańczuk c6f1c42760
Revert "ci: skip running WPT and node compat unless labels present (#… (#31120)
…31012)"

This reverts commit f54a5466e2.

This doesn't work, immediately after landing this, `main` branch got
broken with a faulty PR.
2025-10-28 22:18:56 +00:00

25 lines
648 B
Rust

// Copyright 2018-2025 the Deno authors. MIT license.
use test_util as util;
use util::deno_config_path;
#[test]
fn node_compat_tests() {
let _server = util::http_server();
let mut deno = util::deno_cmd()
.current_dir(util::root_path())
.envs(util::env_vars_for_npm_tests())
.arg("test")
.arg("--config")
.arg(deno_config_path())
.arg("--no-lock")
.arg("-A")
.arg(util::tests_path().join("node_compat/test.ts"))
.spawn()
.expect("failed to spawn script");
let status = deno.wait().expect("failed to wait for the child process");
assert_eq!(Some(0), status.code());
assert!(status.success());
}