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

Feature request: prefer not.toHaveBeenCalled() #1589

Open
geoffswift opened this issue May 16, 2024 · 1 comment
Open

Feature request: prefer not.toHaveBeenCalled() #1589

geoffswift opened this issue May 16, 2024 · 1 comment

Comments

@geoffswift
Copy link

Idea for new rule:

FAIL:

expect(method.mock.calls).toHaveLength(0);

WIN:

expect(method).not.toHaveBeenCalled();
@geoffswift
Copy link
Author

geoffswift commented May 16, 2024

This is related / similar to #1198

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

1 participant