From 810ba37f35727486b977777f647bea3c7b9d9e94 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 18 Oct 2024 12:02:32 -0700 Subject: [PATCH] test(module-source): Should export const object with default values --- packages/module-source/test/module-source.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/module-source/test/module-source.test.js b/packages/module-source/test/module-source.test.js index 1ddf5dfb1f..0f8a1472cd 100644 --- a/packages/module-source/test/module-source.test.js +++ b/packages/module-source/test/module-source.test.js @@ -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(); +});