Skip to content

Conversation

@G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Dec 12, 2025

The implementation feels a bit rough, but it should be easy to build on - part of me wonders if it would be worth spitting the rule up into a rule for checking validate usage, and another for actually enforcing usage 🤔

Resolves #876

@G-Rath G-Rath force-pushed the support-before-assertions branch from 2b42d99 to 776c593 Compare December 13, 2025 18:45
@G-Rath G-Rath merged commit eed9acb into main Dec 13, 2025
21 checks passed
@G-Rath G-Rath deleted the support-before-assertions branch December 13, 2025 19:54
github-actions bot pushed a commit that referenced this pull request Dec 13, 2025
# [29.3.0](v29.2.3...v29.3.0) (2025-12-13)

### Features

* **prefer-expect-assertions:** support basic uses of `hasAssertions` in `beforeEach` and `afterEach` hooks ([#1871](#1871)) ([eed9acb](eed9acb))
@github-actions
Copy link

🎉 This PR is included in version 29.3.0 🎉

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 this pull request may close these issues.

[prefer-expect-assertions] allow beforeEach(expect.hasAssertions)

2 participants