Skip to content

Upgrading babel-jest 17 to 18

Breaking17.0.2 → 18.0.0Breaking3Deprecated1New8Changed7Fixed10Other1

BreakingUpgrade verdict

3 breaking changes.

  • 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.
4 items need code or config changes
Breaking3
Removes pit and mockImpl; use it or mockImplementation instead.
pitmockImplitmockImplementation
Renames --jsonOutputFile to --outputFile.
--jsonOutputFile--outputFile
The testResultsProcessor function is now required to return the modified results.
testResultsProcessor
Deprecated1
Deprecates jest-react-native, which now forwards react-native.
jest-react-nativereact-native