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

Consider rule for naming mocks created with vi.fn() #402

Open
daniel-white opened this issue Mar 25, 2024 · 1 comment
Open

Consider rule for naming mocks created with vi.fn() #402

daniel-white opened this issue Mar 25, 2024 · 1 comment

Comments

@daniel-white
Copy link

Today I learned about vi.fn().mockName(...). This greatly helps troubleshoot expectations with giving the mock a name. Would you consider adding a rule to check for the absence of mockName(...)?

@veritem
Copy link
Owner

veritem commented Mar 30, 2024

a pr is welcome

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