From b5b06ab1b75b90e2de30c5797d02e5f06e9cbe9a Mon Sep 17 00:00:00 2001 From: Tasso Evangelista Date: Wed, 6 Sep 2023 17:52:19 -0300 Subject: [PATCH] Disable Istanbul plugin whenever Babel transpiles non-test code --- apps/meteor/.babelrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/meteor/.babelrc b/apps/meteor/.babelrc index a8c20b400ca5..f129610c469c 100644 --- a/apps/meteor/.babelrc +++ b/apps/meteor/.babelrc @@ -3,7 +3,9 @@ "@babel/preset-env", "@babel/preset-react" ], - "plugins": [ - "babel-plugin-istanbul" - ] + "env": { + "test": { + "plugins": ["istanbul"] + } + } }