Jest: transpile react-sticky-box

next-virtuoso-proof
Alex Gleason 2022-04-06 11:13:21 -05:00
rodzic fe4c2d5c5b
commit 19eae5c010
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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',