From 19eae5c010ca92b1d231379696a142ee2572c101 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 6 Apr 2022 11:13:21 -0500 Subject: [PATCH] Jest: transpile react-sticky-box --- jest.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 7d0f467f4..c2c762be2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -35,8 +35,11 @@ module.exports = { 'testMatch': ['**/*/__tests__/**/?(*.|*-)+(test).(ts|js)?(x)'], 'testEnvironment': 'jsdom', '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})))`, // Ignore node_modules, except static assets - `/node_modules/(?!.+\\.(${ASSET_EXTS}))`, + // `/node_modules/(?!.+\\.(${ASSET_EXTS}))`, ], 'transform': { '\\.[jt]sx?$': 'babel-jest',