From 83473c60df3b7ff4c2326573aa8532b636de4b4e Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 12 Feb 2023 04:35:52 -0800 Subject: Set `require("module").globalPaths` to empty array https://github.com/oven-sh/bun/issues/1641#issuecomment-1427017442 --- test/bun.js/node-module-module.test.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/bun.js/node-module-module.test.js (limited to 'test/bun.js/node-module-module.test.js') diff --git a/test/bun.js/node-module-module.test.js b/test/bun.js/node-module-module.test.js new file mode 100644 index 000000000..549b5e085 --- /dev/null +++ b/test/bun.js/node-module-module.test.js @@ -0,0 +1,5 @@ +import { expect, test } from "bun:test"; + +test("module.globalPaths exists", () => { + expect(Array.isArray(require("module").globalPaths)).toBe(true); +}); -- cgit v1.2.3