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

[prefer-expect-assertions] Doesn't work within .each blocks #676

Closed
loganrosen opened this issue Sep 21, 2020 · 1 comment · Fixed by #798
Closed

[prefer-expect-assertions] Doesn't work within .each blocks #676

loganrosen opened this issue Sep 21, 2020 · 1 comment · Fixed by #798

Comments

@loganrosen
Copy link

It appears that the prefer-expect-assertions rule does not work if your test is within a describe.each() block or if the test itself is a test.each(). It doesn't detect that there's a lack of an expect.assertions() or expect.hasAssertions() call at the beginning of the test.

G-Rath added a commit that referenced this issue Mar 21, 2021
G-Rath added a commit that referenced this issue Apr 2, 2021
github-actions bot pushed a commit that referenced this issue Apr 2, 2021
## [24.3.3](v24.3.2...v24.3.3) (2021-04-02)

### Bug Fixes

* **no-duplicate-hooks:** support `describe.each` ([#797](#797)) ([243cb4f](243cb4f)), closes [#642](#642)
* **prefer-expect-assertions:** support `.each` ([#798](#798)) ([f758243](f758243)), closes [#676](#676)
@github-actions
Copy link

github-actions bot commented Apr 2, 2021

🎉 This issue has been resolved in version 24.3.3 🎉

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
Development

Successfully merging a pull request may close this issue.

2 participants