diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-08-02 01:17:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 01:17:38 +0200 |
commit | 21f1b2f62b1fac9089c214d9b862fce2359d30fd (patch) | |
tree | c18cc3724c0ed18b5cb62915c0afc1f2e1723cdb /cli/tests/integration/node_compat_tests.rs | |
parent | 00b5fe8ba31240f6e6abf668ebda8ed0c40fb524 (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.rs | 6 |
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, +}); |