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

fix(valid-describe): report on concise-body arrow functions #863

Merged

Conversation

jcfranco
Copy link
Contributor

Jest 27 will throw an error if a describe block returns a value (changelog, test-case). This PR updates valid-describe to report on these instances that would fail tests.

If deemed useful, I could look at making this fixable in a follow-up PR.

@G-Rath G-Rath changed the title fix(valid-describe): report on value-returning describe blocks fix(valid-describe): report on concise-body arrow functions Jul 21, 2021
Copy link
Collaborator

@G-Rath G-Rath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch - we should have always supported this tbh

@G-Rath G-Rath merged commit 71c5299 into jest-community:main Jul 21, 2021
@jcfranco jcfranco deleted the catch-value-returning-describes branch July 21, 2021 02:23
@jcfranco
Copy link
Contributor Author

Awesome, thanks for the quick review and merge!

github-actions bot pushed a commit that referenced this pull request Jul 21, 2021
## [24.3.7](v24.3.6...v24.3.7) (2021-07-21)

### Bug Fixes

* **valid-describe:** report on concise-body arrow functions ([#863](#863)) ([71c5299](71c5299))
@github-actions
Copy link

🎉 This PR is included in version 24.3.7 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants