-
-
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
beforeAll inside skipped describe is executed when using the jasmine2 runner #6755
Comments
We also have this problem with some puppeteer integration tests that have a very long setup time. It would be great if the |
I doubt we'll fix this unless somebody from the community does it. If Circus works correctly I recommend just using that |
Ok, thanks for confirming the behavior isn't intentional. I'll see if I can submit a fix soon. |
What's the news about this bug? It sounds to me to a major bug and it seems not so complicated to fix. If |
It will be the default in the next version |
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. |
🐛 Bug Report
beforeAll
inside skipped describes are executed regardless. This was already reported in #6166 and closed with #6234, but from what I've seen the problem remains when using the defaultjasmine2
runner. I wasn't able to reproduce the bug when using thejest-circus
runner.To Reproduce
Steps to reproduce the behaviour:
describe.skip
beforeAll
inside this skipped describebeforeAll
to check if it is being executedExpected behavior
The code from a
beforeAll
should not be executed when the describe it is part of is skipped.Link to repl or repo (highly encouraged)
Repository showcasing the bug: https://github.com/mlopezluque/jest-beforeall-skipped-test
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: