Skip to content

fix(unit-testing.md): unit-testing.md to use MockMetadata from jest-mock 30+ #3285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

squeakycodes
Copy link
Contributor

unit-testing.md referenced MockFunctionMetadata, which was removed in version 30 of jest-mock. This commit changes references of MockFunctionMetadata to MockMetadata, updating it to work with the newer versions of jest-mock.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Docs
  • Other... Please describe:

What is the current behavior?

unit-testing.md refers to MockFunctionMetadata, which has been removed in jest-mock version 30.

Issue Number: #15309 (in @nestjs/nest)

What is the new behavior?

unit-testing.md now refers to MockMetadata, allowing the example code to proceed.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

…st jest-mock

unit-testing.md referenced MockFunctionMetadata, which was removed in version 30 of jest-mock. This commit changes references of MockFunctionMetadata to MockMetadata, updating it to work with the newer versions of jest-mock.
@kamilmysliwiec kamilmysliwiec merged commit 97ec442 into nestjs:master Jun 26, 2025
4 checks passed
@kamilmysliwiec
Copy link
Member

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants