We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prefer expect(a).toContain(b) rather than expect(a.includes(b)).toBe(true).
expect(a).toContain(b)
expect(a.includes(b)).toBe(true)
The error messages are often times better.
This rule is similar to prefer-to-have-length.
prefer-to-have-length
The text was updated successfully, but these errors were encountered:
Seems like a nice rule to add!
Sorry, something went wrong.
feat: add prefer-to-contain rule (#174)
83a4c48
Fixes #100
🎉 This issue has been resolved in version 21.25.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
Prefer
expect(a).toContain(b)
rather thanexpect(a.includes(b)).toBe(true)
.The error messages are often times better.
This rule is similar to
prefer-to-have-length
.The text was updated successfully, but these errors were encountered: