mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Set exports to {} in user-constructed CommonJSModuleRecords (#4076)
This commit is contained in:
@@ -26,8 +26,11 @@ test("Module exists", () => {
|
||||
expect(Module).toBeDefined();
|
||||
});
|
||||
|
||||
test("module.Module exists", () => {
|
||||
test("module.Module works", () => {
|
||||
expect(Module.Module === Module).toBeTrue();
|
||||
|
||||
const m = new Module("asdf");
|
||||
expect(m.exports).toEqual({});
|
||||
});
|
||||
|
||||
test("_nodeModulePaths() works", () => {
|
||||
|
||||
Reference in New Issue
Block a user