Skip to content
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

[new rule] prefer-jest-mocked #1597

Closed
MillerSvt opened this issue May 30, 2024 · 1 comment
Closed

[new rule] prefer-jest-mocked #1597

MillerSvt opened this issue May 30, 2024 · 1 comment

Comments

@MillerSvt
Copy link
Contributor

Incorrect code:

(someMethod as jest.Mock)

Correct code:

jest.mocked(someMethod)

Support autofix: yes

I can do this. Awaiting for feedback.

@SimenB
Copy link
Member

SimenB commented May 30, 2024

Duplicate of #1470

But yes, PR very much welcome!

@SimenB SimenB closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
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

No branches or pull requests

2 participants