Skip to content

Commit

Permalink
set babel env for jest
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-fxpig committed May 14, 2020
1 parent 9d36468 commit d4cd438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function babelConfig(api) {
"@babel/preset-env",
{
useBuiltIns: false, // use the full lib to make sure vendor bundle stays stable
targets: "cover 95%",
targets: !api.env('test') ? "cover 95%" : { node: 'current' },
bugfixes: true
}
],
Expand All @@ -30,7 +30,7 @@ module.exports = function babelConfig(api) {
plugins.push("react-hot-loader/babel");
}
if (process.env.BABEL_INCLUDE_TIMING_FUNCTIONS === "false") {
plugins.push(["strip-function-call", {strip: ["timerStart", "timerEnd"]}]);
plugins.push(["strip-function-call", { strip: ["timerStart", "timerEnd"] }]);
}
api.cache(true);
return {
Expand Down

0 comments on commit d4cd438

Please sign in to comment.