-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[jest-circus] throw if beforeAll
or afterAll
hooks defined in empty describe block
#6293
Comments
I'm looking at this. |
sweet! let's reuse |
(see errors in |
* [Jest Circus] Make hooks in empty describe blocks error Fixes #6293 * Prettier * Trim stack trace for hooks in empty describe blocks * Document hooks in empty describe blocks in CHANGELOG.md * Move to e2e * Add missing snapshots * Improve error message * Add test asserting we can have hooks in blocks with skipped tests
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
right now Jasmine would run
beforeAll
andafterAll
hooks even if there are no tests. e.g.will print
will do the same.
because there's no point in doing so we should disallow it and throw an error
the fix should be inside
jest-circus
packageto run jest tests using
jest-circus
runJEST_CIRCUS=1 ./jest
The text was updated successfully, but these errors were encountered: