Skip to content

Commit

Permalink
fix(preset): Do not transform lodash during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Sep 24, 2020
1 parent 1bb9030 commit a41af7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-preset-zillow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ module.exports = declare((api, options) => {
],

isNode ? null : [require('fast-async'), { spec: true }],
require('babel-plugin-lodash'),
// avoid corrupting istanbul coverage during tests
// https://github.com/istanbuljs/babel-plugin-istanbul/issues/116
env !== 'test' ? require('babel-plugin-lodash') : null,
].filter(Boolean),
};
});

0 comments on commit a41af7d

Please sign in to comment.