Skip to content

Upgrading babel-jest 22 to 23

Breaking22.4.4 → 23.6.0Breaking9New39Changed15Fixed53Other16

BreakingUpgrade verdict

9 breaking changes.

  • Removes undefined props from React elements in pretty-format output.
  • Removes jest.genMockFn and jest.genMockFunction from jest-runtime.
  • The coverage setting is now accessed through ProjectWorkspace.collectCoverage instead of the old location.
  • Overhauls watch plugin hook names in jest-cli.
Top 3 of 9 that need code or config changes
Breaking9
Removes undefined props from React elements in pretty-format output.
pretty-format
Removes jest.genMockFn and jest.genMockFunction from jest-runtime.
jest.genMockFnjest.genMockFunction
Moves coverage to ProjectWorkspace.collectCoverage in jest-editor-support.
coverageProjectWorkspace.collectCoverage
Overhauls watch plugin hook names in jest-cli.
jest-cli
babel-jest transformer now always returns an object.
babel-jest
Concatenates the test name, optional snapshot name and count in jest-snapshot.
Adds error throwing and descriptive errors to it/test for invalid arguments in jest-jasmine2 and jest-circus.
ittest
Includes tracked call results in serialized mocks in jest-mock.
jest-mock
Replaces timestamps with invocationCallOrder in jest-mock.
jest-mockinvocationCallOrder