Skip to content

Commit

Permalink
test: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 21, 2023
1 parent b484d88 commit 175ea9d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,18 +362,19 @@ describe('esbuild plugin', () => {
],
})
// Following code is expected
// esbuild doesn't emit json code as es module for now
// So you will need @rollup/plugin-commonjs
expect(output[0].code).toMatchInlineSnapshot(`
"module.exports = {
foo: true
"var foo = true;
var foo_default = {
foo
};
var foo = /*#__PURE__*/Object.freeze({
__proto__: null
var foo$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
default: foo_default,
foo: foo
});
console.log(foo);
console.log(foo$1);
"
`)
})
Expand Down

0 comments on commit 175ea9d

Please sign in to comment.