From 2f30aa8df5c85408be486761c8546275b66b80bc Mon Sep 17 00:00:00 2001 From: salvatore-fxpig Date: Thu, 14 May 2020 18:41:18 +0200 Subject: [PATCH] set babel env for jest --- babel.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index 49863f888..14c912fd3 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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 } ],