Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocument best practices for test assertions #646
Comments
|
Yes, but specifically, a section on never using "noop" matchers - ie, anything that doesn't end in a function call - because the cost of a typo is a silent passing test. In other words, |
|
Thanks for following up on this, @ljharb Since opening this issue (over three years ago!), the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's an issue on enzyme enzymejs/enzyme#97 about strengthening the assertion styles to avoid false positives:
The issue mentions that the
to.be.truestyle violates this styleguide, but I wasn't able to find any content here that alludes to this.