Skip to content

Commit dc25f20

Browse files
thymikeegrabbou
authored andcommitted
chore: update Jest preset to align with Jest 24 (#24062)
Summary: Jest 24 includes [`testMatch` and `moduleFileExtensions`](https://github.com/facebook/jest/blob/c5fd7aae93764c13c259ae9a73846c10e84ae2a3/packages/jest-config/src/Defaults.ts#L70) that align with the ones that are currently there on master, because it added default handling for TypeScript as well. I think it's time for us to move to Jest 24. Is there a way we can tell users to upgrade Jest to certain version? Fixes #24060 [General] [Changed] - update Jest preset to align with Jest 24 Pull Request resolved: #24062 Differential Revision: D14538988 Pulled By: cpojer fbshipit-source-id: d8d152b8e8517b34144970f1cc1ed0b49f8b4e54
1 parent 27872cf commit dc25f20

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

jest-preset.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = {
1818
hasteImplModulePath: require.resolve('./jest/hasteImpl.js'),
1919
providesModuleNodeModules: ['react-native'],
2020
},
21-
moduleFileExtensions: ['js', 'json', 'jsx', 'node', 'ts', 'tsx'],
2221
moduleNameMapper: {
2322
'^React$': require.resolve('react'),
2423
},
@@ -30,10 +29,6 @@ module.exports = {
3029
),
3130
},
3231
transformIgnorePatterns: ['node_modules/(?!(jest-)?react-native)'],
33-
testMatch: [
34-
'**/__tests__/**/*.(js|ts|tsx)',
35-
'**/?(*.)+(spec|test).(js|ts|tsx)',
36-
],
3732
setupFiles: [require.resolve('./jest/setup.js')],
3833
testEnvironment: 'node',
3934
};

0 commit comments

Comments
 (0)