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
…2591)

Refs: #2094

## Description

Elaborates failing tests for a known defect of ModuleSource, encountered
in the development of #400
  • Loading branch information
kriskowal authored Oct 21, 2024
2 parents 043fde7 + 810ba37 commit bf8b1f8
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 bf8b1f8

Please sign in to comment.