From 21f1b2f62b1fac9089c214d9b862fce2359d30fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 2 Aug 2023 01:17:38 +0200 Subject: 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. --- cli/tests/integration/node_compat_tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/tests/integration') 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, +}); -- cgit v1.2.3