summaryrefslogtreecommitdiff
path: root/cli/tests/integration/node_compat_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-08-02 01:17:38 +0200
committerGitHub <noreply@github.com>2023-08-02 01:17:38 +0200
commit21f1b2f62b1fac9089c214d9b862fce2359d30fd (patch)
treec18cc3724c0ed18b5cb62915c0afc1f2e1723cdb /cli/tests/integration/node_compat_tests.rs
parent00b5fe8ba31240f6e6abf668ebda8ed0c40fb524 (diff)
feat(node): add polyfill for node:test module (#20002)
This commit provides basic polyfill for "node:test" module. Currently only top-level "test" function is polyfilled, all remaining functions from that module throw not implemented errors.
Diffstat (limited to 'cli/tests/integration/node_compat_tests.rs')
-rw-r--r--cli/tests/integration/node_compat_tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/node_compat_tests.rs b/cli/tests/integration/node_compat_tests.rs
index b5fd7b1b3..29d70708e 100644
--- a/cli/tests/integration/node_compat_tests.rs
+++ b/cli/tests/integration/node_compat_tests.rs
@@ -17,3 +17,9 @@ fn node_compat_tests() {
assert_eq!(Some(0), status.code());
assert!(status.success());
}
+
+itest!(node_test_module {
+ args: "test node/test.js",
+ output: "node/test.out",
+ exit_code: 1,
+});