Upgrading babel-jest 22 to 23
Breaking22.4.4 → 23.6.0Breaking9New39Changed15Fixed53Other16
BreakingUpgrade verdict
9 breaking changes.
In plain terms
- 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.
Must act Top 3 of 9 that need code or config changes
What you must change
Breaking9
Removes undefined props from React elements in pretty-format output.
pretty-formatRemoves jest.genMockFn and jest.genMockFunction from jest-runtime.
jest.genMockFnjest.genMockFunctionMoves coverage to ProjectWorkspace.collectCoverage in jest-editor-support.
coverageProjectWorkspace.collectCoverageOverhauls watch plugin hook names in jest-cli.
jest-clibabel-jest transformer now always returns an object.
babel-jestConcatenates 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.ittestIncludes tracked call results in serialized mocks in jest-mock.
jest-mockReplaces timestamps with invocationCallOrder in jest-mock.
jest-mockinvocationCallOrder