-
-
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
Setup and teardown run in skipped suites and tests #5593
Comments
I'd like to add a few notes on the impact this can have:
|
Duplicate of #4820 |
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. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Setup and teardown (
before*
andafter*
) is run for skipped suites (describe
) and tests (it
et al).If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can
yarn install
andyarn test
.https://repl.it/repls/MuddyYellowgreenEngineer
What is the expected behavior?
Setup and teardown will not be run for tests that are skipped.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
As this is reproducible on repl.it, I'm not sure these will help narrow down the issue, but I'll provide them anyway to expedite the issue.
Config:
Node: 8.6.0
NPM: 5.6.0
OS: OS X 10.11.6
The text was updated successfully, but these errors were encountered: