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

[no-standalone-expect]: false positive for expect.extend: no-standalone-expect #1190

Closed
tomi opened this issue Aug 8, 2022 · 2 comments · Fixed by #1191
Closed

[no-standalone-expect]: false positive for expect.extend: no-standalone-expect #1190

tomi opened this issue Aug 8, 2022 · 2 comments · Fixed by #1191

Comments

@tomi
Copy link

tomi commented Aug 8, 2022

I'm extending expect with a custom rule using expect.extend, that is in the module root level. This results to an error:

error Expect must be inside of a test block jest/no-standalone-expect

I don't believe this should be an error. I think there might be some regression since this came up in a renovate PR to update eslint-plugin-jest from 26.7.0 -> 26.8.0

@G-Rath
Copy link
Collaborator

G-Rath commented Aug 8, 2022

Duplicate of #1186

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

🎉 This issue has been resolved in version 26.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants