-
Notifications
You must be signed in to change notification settings - Fork 242
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
[max-expects] now considers expect.assertions(n) an expect call #1193
Comments
Yup that's the same sort of thing as #1186 - we shouldn't count |
This is a bit annoying... All my 5-assertion tests are broken now, because is counting 6 (???). This is my example explicitly says 5 assertions: https://github.com/sir-gon/projecteuler-js/blob/main/src/helpers/bigNumbers.test.js#L44-L62
|
@sir-gon PRs are always welcome; otherwise I'll try and get this resolved myself tonight once I'm off work 🙂 |
🎉 This issue has been resolved in version 26.8.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for the quick fix, @G-Rath! Your work is appreciated. 🙂 |
The behavior in 26.8.1 changed from 26.7.0 to include
expect.assertions
when countingexpect
calls. This seems at odds with the purpose ofexpect.assertions
to verify the number of intendedexpect
calls. In 26.8.1, this means either dropping the verification or dropping a differentexpect
, neither of which seem ideal.My suggestions (in order of personal preference):
expect.assertions
calls when countingmax-expects
.ignoreExpectAssertions: boolean
.Thanks for your time and consideration. 🙂
The text was updated successfully, but these errors were encountered: