Upgrading babel-jest 17 to 18
Breaking17.0.2 → 18.0.0Breaking3Deprecated1New8Changed7Fixed10Other1
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Two old shortcuts were removed. Use the standard names instead.
- The command line flag for writing output to a file has a new name.
- If you use a custom test results processor, it must now hand back the results it changed.
- The jest-react-native package is deprecated and simply passes through to react-native.
Must act 4 items need code or config changes
What you must change
Breaking3
Removes
pit and mockImpl; use it or mockImplementation instead.pitmockImplitmockImplementationRenames
--jsonOutputFile to --outputFile.--jsonOutputFile--outputFileThe testResultsProcessor function is now required to return the modified results.
testResultsProcessorDeprecations to plan for
Deprecated1
Deprecates
jest-react-native, which now forwards react-native.jest-react-nativereact-native