Skip to content

Commit 175ea9d

Browse files
committed
test: update snapshot
1 parent b484d88 commit 175ea9d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

test/index.test.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,18 +362,19 @@ describe('esbuild plugin', () => {
362362
],
363363
})
364364
// Following code is expected
365-
// esbuild doesn't emit json code as es module for now
366-
// So you will need @rollup/plugin-commonjs
367365
expect(output[0].code).toMatchInlineSnapshot(`
368-
"module.exports = {
369-
foo: true
366+
"var foo = true;
367+
var foo_default = {
368+
foo
370369
};
371370
372-
var foo = /*#__PURE__*/Object.freeze({
373-
__proto__: null
371+
var foo$1 = /*#__PURE__*/Object.freeze({
372+
__proto__: null,
373+
default: foo_default,
374+
foo: foo
374375
});
375376
376-
console.log(foo);
377+
console.log(foo$1);
377378
"
378379
`)
379380
})

0 commit comments

Comments
 (0)