Packages

babel-jest

30.5.2 · 18 Sep 2026MIT71.6M / weekRepositoryHomepagenpmAtom feed

Your version

17.0.0

major8 Nov 2016Where it was published

17.0.2 is the newest release of 17.x.

In short

4 new3 fixed8 changed

Release note

  • Added expect.extend.

  • Properly resolve modules with platform extensions on react-native.

  • Added support for custom snapshots serializers.

  • Updated to Jasmine 2.5.2.

  • Big diffs are now collapsed by default in snapshots and assertions. Added --expand (or -e) to show the full diff.

  • Replaced scriptPreprocessor with the new transform option.

  • Added jest.resetAllMocks which replaces jest.clearAllMocks.

  • Fixes for react-native preset.

  • Fixes for global built in objects in jest-environment-node.

  • Create mock objects in the vm context instead of the parent context.

  • .babelrc is now part of the transform cache key in babel-jest.

  • Fixes for docblock parsing with haste modules.

  • Exit with the proper code when the coverage threshold is not reached.

  • Implemented file watching in jest-haste-map.

  • --json now includes information about individual tests inside a file.