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

Check for redundant mocks #1

Open
nbolton opened this issue May 3, 2024 · 0 comments
Open

Check for redundant mocks #1

nbolton opened this issue May 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nbolton
Copy link
Member

nbolton commented May 3, 2024

As code changes over time and imports are removed, mocks become redundant:

// No longer imported in code under test; `<Link>` moved to component
jest.mock("next/navigation");

It would be useful if, as well as telling you what mocks are missing, it also told you what mocks were redundant.

@nbolton nbolton added the enhancement New feature or request label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant