-
-
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: not skipped within describe.skip #6166
Comments
This happens with |
This should be easy to fix. It seems there's currently no logic checking whether it should be executed or not. We should probably check if |
Older issue, which this might be a dupe of: #4820 Includes a link to Jasmine's fix of the same bug, which we were unable to port |
This issue still remains when using the default I've made this gist with the same code as the issue's repl using the latest version from Jest. OutputDefault
|
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
functions are run even when defined inside of adescribe.skip
block.To Reproduce
describe.skip
block.beforeAll
inside thedescribe.skip
block.beforeAll
function to confirm that it does or does not get run (e.g. add aconsole.log
statement, set some flag, etc.).Expected behavior
The function registered by the
beforeAll
is never executed.Link to repl or repo (highly encouraged)
https://repl.it/repls/UsableBurlyJavascript
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: