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
valid-expect does not work with then #347
Labels
Comments
I'd recommend using await expect(functionReturningAPromise()).resolves.toEqual(1)
expect(someMock).toHaveBeenCalledTimes(1); However, the code you write is valid, so the rule shouldn't complain /cc @yatki |
SimenB
pushed a commit
that referenced
this issue
Jul 25, 2019
🎉 This issue has been resolved in version 22.13.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have a problem with
jest/valid-expect
rule, it seems to not work when I put a.then
after a.rejects
or a.resolves
like this:When I disable the rule
jest/valid-expect
or I remove the.then
it works well.The text was updated successfully, but these errors were encountered: