yarn babel-jest 28.0.0-alpha.5
v28.0.0-alpha.5

latest releases: 28.1.0, 28.0.3, 28.0.2...
3 months ago

Features

  • [jest-circus, jest-jasmine2] Allowed classes and functions as describe and it/test names (#12484)
  • [jest-cli, jest-config] [BREAKING] Remove testURL config, use testEnvironmentOptions.url instead (#10797)
  • [jest-config] [BREAKING] Rename moduleLoader to runtime (#10817)
  • [jest-config] [BREAKING] Rename extraGlobals to sandboxInjectedGlobals (#10817)
  • [jest-environment-jsdom] [BREAKING] Pass global config to Jest environment constructor for jsdom environment (#12461)
  • [jest-environment-jsdom] [BREAKING] Second argument context to constructor is mandatory (#12469)
  • [jest-environment-node] [BREAKING] Pass global config to Jest environment constructor for node environment (#12461)
  • [jest-environment-node] [BREAKING] Second argument context to constructor is mandatory (#12469)
  • [jest-haste-map] [BREAKING] HasteMap.create now returns a promise (#12008)
  • [jest-haste-map] Add support for dependencyExtractor written in ESM (#12008)
  • [jest-mock] [BREAKING] Rename exported utility types ConstructorLike, MethodLike, ConstructorLikeKeys, MethodLikeKeys, PropertyLikeKeys; remove exports of utility types ArgumentsOf, ArgsType, ConstructorArgumentsOf - TS builtin utility types ConstructorParameters and Parameters should be used instead (#12435)
  • [jest-mock] Add support for auto-mocking async generator functions (#11080)
  • [jest-runner] Allow passing testEnvironmentOptions via docblocks (#12470)
  • [jest-runtime] [BREAKING] Runtime.createHasteMap now returns a promise (#12008)

Fixes

  • [expect] Throw useful error if expect.extend is called with invalid matchers (#12488)
  • [expect] Fix iterableEquality ignores other properties (#8359)
  • [jest-config, jest-haste-map] Allow searching for tests in node_modules by exposing retainAllFiles (#11084)
  • [jest-core] [BREAKING] Exit with status 1 if no tests are found with --findRelatedTests flag (#12487)
  • [jest-environment-jsdom] Log JSDOM errors more cleanly (#12386)
  • [@jest/expect-utils] [BREAKING] Fix false positives when looking for undefined prop (#8923)

New Contributors

Full Changelog: v28.0.0-alpha.4...v28.0.0-alpha.5

Don't miss a new babel-jest release

NewReleases is sending notifications on new releases.