Skip to content

Commit

Permalink
test(module-source): Should export const object with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Oct 18, 2024
1 parent 20b9649 commit 8381578
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/module-source/test/module-source.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -797,3 +797,12 @@ test.failing('should support export of defaulted extraction', t => {
`);
t.pass();
});

test.failing('should support export const object with default', t => {
const _ = new ModuleSource(`
export const {
x = undefined,
} = globalThis;
`);
t.pass();
});

0 comments on commit 8381578

Please sign in to comment.