diff --git a/jest.config.js b/jest.config.js index e86307f93..3fa667c36 100644 --- a/jest.config.js +++ b/jest.config.js @@ -38,12 +38,12 @@ module.exports = { 'transformIgnorePatterns': [ // FIXME: react-sticky-box doesn't provide a CJS build, so transform it for now // https://github.com/codecks-io/react-sticky-box/issues/79 - `/node_modules/(?!(react-sticky-box|.+\\.(${ASSET_EXTS})))`, + `/node_modules/(?!(react-sticky-box|.+\\.(${ASSET_EXTS})$))`, // Ignore node_modules, except static assets - // `/node_modules/(?!.+\\.(${ASSET_EXTS}))`, + // `/node_modules/(?!.+\\.(${ASSET_EXTS})$)`, ], 'transform': { '\\.[jt]sx?$': 'babel-jest', - [`.+\\.(${ASSET_EXTS})$`]: '/jest/assetTransformer.js', + [`\\.(${ASSET_EXTS})$`]: '/jest/assetTransformer.js', }, };