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. --- ext/node/polyfills/01_require.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/node/polyfills/01_require.js') diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index c58dad9a4..acdf8402f 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -117,6 +117,7 @@ import streamPromises from "node:stream/promises"; import streamWeb from "node:stream/web"; import stringDecoder from "node:string_decoder"; import sys from "node:sys"; +import test from "node:test"; import timers from "node:timers"; import timersPromises from "node:timers/promises"; import tls from "node:tls"; @@ -219,6 +220,7 @@ function setupBuiltinModules() { "stream/web": streamWeb, string_decoder: stringDecoder, sys, + test, timers, "timers/promises": timersPromises, tls, -- cgit v1.2.3