diff --git a/src/workerd/api/node/tests/path-test.js b/src/workerd/api/node/tests/path-test.js index f6810e83b26..ffdfe5ca1e6 100644 --- a/src/workerd/api/node/tests/path-test.js +++ b/src/workerd/api/node/tests/path-test.js @@ -618,3 +618,24 @@ export const test_path_basename = { ); }, }; + +export const make_sure_posix_win32_works = { + async test() { + { + const pathModule = await import('node:path/win32'); + strictEqual(typeof pathModule.default.resolve, 'function'); + strictEqual( + typeof process.getBuiltinModule('node:path/win32').resolve, + 'function' + ); + } + { + const pathModule = await import('node:path/posix'); + strictEqual(typeof pathModule.default.resolve, 'function'); + strictEqual( + typeof process.getBuiltinModule('node:path/posix').resolve, + 'function' + ); + } + }, +}; diff --git a/src/workerd/api/node/tests/path-test.wd-test b/src/workerd/api/node/tests/path-test.wd-test index aaf9f51774d..3f97f6d438b 100644 --- a/src/workerd/api/node/tests/path-test.wd-test +++ b/src/workerd/api/node/tests/path-test.wd-test @@ -7,7 +7,7 @@ const unitTests :Workerd.Config = ( modules = [ (name = "worker", esModule = embed "path-test.js") ], - compatibilityDate = "2023-01-15", + compatibilityDate = "2024-10-11", compatibilityFlags = ["nodejs_compat"] ) ), diff --git a/src/workerd/api/node/tests/util-nodejs-test.js b/src/workerd/api/node/tests/util-nodejs-test.js index df8f224b824..068cb2ba3fc 100644 --- a/src/workerd/api/node/tests/util-nodejs-test.js +++ b/src/workerd/api/node/tests/util-nodejs-test.js @@ -4368,3 +4368,10 @@ export const isArray = { assert.ok(!util.isArray('hello world')); }, }; + +export const makeSureUtilTypesIsExported = { + async test() { + const types = await import('node:util/types'); + assert.ok(types, 'node:util/types is not exported'); + }, +};