aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/node-module-module.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-12 04:35:52 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-12 04:35:52 -0800
commit83473c60df3b7ff4c2326573aa8532b636de4b4e (patch)
tree3f440eecedc8d0b46c4cac3e6b77ddc1e4d5c326 /test/bun.js/node-module-module.test.js
parent8b4e58f3d225e30d186fc2d208dea477a2f9b5a5 (diff)
downloadbun-83473c60df3b7ff4c2326573aa8532b636de4b4e.tar.gz
bun-83473c60df3b7ff4c2326573aa8532b636de4b4e.tar.zst
bun-83473c60df3b7ff4c2326573aa8532b636de4b4e.zip
Set `require("module").globalPaths` to empty array
https://github.com/oven-sh/bun/issues/1641#issuecomment-1427017442
Diffstat (limited to 'test/bun.js/node-module-module.test.js')
-rw-r--r--test/bun.js/node-module-module.test.js5
1 files changed, 5 insertions, 0 deletions
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);
+});