diff --git a/jest.config.js b/jest.config.js index 1b53c736c..fe913b3f3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,7 @@ module.exports = { transform: { '^.+\\.[jt]sx?$': '/jest.transformer.js', }, + transformIgnorePatterns: ['node_modules/(?!(gatsby)/)'], moduleNameMapper: { '.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy', '.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': @@ -17,7 +18,6 @@ module.exports = { ...paths, }, testPathIgnorePatterns: ['node_modules', '\\.cache', '.*/public'], - transformIgnorePatterns: ['node_modules/(?!(gatsby)/)'], globals: { __PATH_PREFIX__: '', },