Skip to content

Commit

Permalink
fix: update node test
Browse files Browse the repository at this point in the history
  • Loading branch information
nissy-dev committed Feb 26, 2023
1 parent ea95e08 commit cb6f660
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node-swc/__tests__/transform/optimizer_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ it('should perform dce', () => {
jsc: {
transform: {
optimizer: {
simplify: {
preserveImportsWithSideEffects: true
},
globals: {
vars: {
__DEBUG__: 'true'
Expand All @@ -20,4 +23,4 @@ it('should perform dce', () => {
expect(out.map).toBeFalsy();

expect(out.code.trim()).toBe(`console.log("Foo");`);
});
});

0 comments on commit cb6f660

Please sign in to comment.