Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit c0beb86

Browse files
thymikeealeclarson
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 facebook/react-native#24060 [General] [Changed] - update Jest preset to align with Jest 24 Pull Request resolved: facebook/react-native#24062 Differential Revision: D14538988 Pulled By: cpojer fbshipit-source-id: d8d152b8e8517b34144970f1cc1ed0b49f8b4e54
1 parent e276226 commit c0beb86

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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
},
@@ -32,10 +31,6 @@ module.exports = {
3231
transformIgnorePatterns: [
3332
'node_modules/(?!(jest-)?react-native|react-clone-referenced-element)',
3433
],
35-
testMatch: [
36-
'**/__tests__/**/*.(js|ts|tsx)',
37-
'**/?(*.)+(spec|test).(js|ts|tsx)',
38-
],
3934
setupFiles: [require.resolve('./jest/setup.js')],
4035
testEnvironment: 'node',
4136
};

0 commit comments

Comments
 (0)