Skip to content

Conversation

@elizabeth-ilina
Copy link
Contributor

@elizabeth-ilina elizabeth-ilina commented Dec 3, 2025

Because

  • To avoid casting as jest.Mock

This pull request

  • Replaces "as jest.Mock" with jest.spyOn()
  • Uses more of existing factories.

Issue that this pull request solves

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review December 3, 2025 18:47
@elizabeth-ilina elizabeth-ilina requested a review from a team as a code owner December 3, 2025 18:48
@elizabeth-ilina elizabeth-ilina force-pushed the polish-use-jestSpyOn-in-unit-test branch from 4e1c23c to 755fa79 Compare December 3, 2025 19:44
Because:

* To avoid casting as jest.Mock

This commit:

* Replaces "as jest.Mock" with jest.spyOn()
@elizabeth-ilina elizabeth-ilina force-pushed the polish-use-jestSpyOn-in-unit-test branch from 755fa79 to d1beac3 Compare December 3, 2025 19:51
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