From 52754cb168628f9d6e77418f049caa366cddf094 Mon Sep 17 00:00:00 2001 From: Adam Butterworth Date: Tue, 5 Nov 2019 10:33:20 -0500 Subject: [PATCH] fix: babel config glob patterns now match (#18) --- lib/presets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/presets.js b/lib/presets.js index 37108bbdc..4c7824987 100644 --- a/lib/presets.js +++ b/lib/presets.js @@ -14,11 +14,11 @@ module.exports = { configFile: getConfigFilepath('jest.config.js'), }, babel: { - globSearchPattern: '(babel.config.js|.babelrc*)', + globSearchPattern: '+(babel.config.js|.babelrc*)', configFile: getConfigFilepath('babel.config.js'), }, 'babel-preserve-modules': { - globSearchPattern: '(babel.config.js|.babelrc*)', + globSearchPattern: '+(babel.config.js|.babelrc*)', configFile: getConfigFilepath('babel-preserve-modules.config.js'), }, 'webpack-prod': {