Skip to content

Commit

Permalink
Jest: simplify regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason committed Jul 9, 2022
1 parent 0224747 commit 0dc9478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})$`]: '<rootDir>/jest/assetTransformer.js',
[`\\.(${ASSET_EXTS})$`]: '<rootDir>/jest/assetTransformer.js',
},
};

0 comments on commit 0dc9478

Please sign in to comment.