Skip to content

Update jest-mock: 27.4.6 → 27.5.1 (minor)

Depfu Bot requested to merge depfu/update/yarn/jest-mock-27.5.1 into main

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

️ jest-mock (27.4.6 → 27.5.1) · Repo · Changelog
Release Notes

27.5.1

Features

  • [jest-config] Support comments in JSON config file (#12316)
  • [pretty-format] Expose ConvertAnsi plugin (#12308)

Fixes

  • [expect] Add type definitions for asymmetric closeTo matcher (#12304)
  • [jest-cli] Load binary via exported API (#12315)
  • [jest-config] Replace jsonlint with parse-json (#12316)
  • [jest-repl] Make module importable (#12311 & #12315)

Chore & Maintenance

  • [*] Avoid anonymous default exports (#12313)

New Contributors

Full Changelog: v27.5.0...v27.5.1

27.5.0

Features

  • [expect] Add asymmetric matcher expect.closeTo (#12243)
  • [jest-mock] Added mockFn.mock.lastCall to retrieve last argument (#12285)

Fixes

  • [expect] Add a fix for .toHaveProperty('') (#12251)
  • [jest-each, @jest/globals] Allow passing ReadonlyArray type of a table to describe.each and test.each (#12297)
  • [@jest/globals] Add missing options argument to jest.doMock typing (#12292)
  • [jest-environment-node] Add atob and btoa (#12269)
  • [jest-matcher-utils] Correct diff for expected asymmetric matchers (#12264)
  • [jest-message-util] Fix .getTopFrame() (and toMatchInlineSnapshot()) with mjs files (#12277)

Chore & Maintenance

  • [*] Update graceful-fs to ^4.2.9 (#11749)

Performance

  • [jest-resolve] perf: skip error creation on not found stat calls (#11749)

New Contributors

Full Changelog: v27.4.7...v27.5.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 65 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

Merge request reports