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 beforeAll hooks in jest-circus #6681

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

aaronabramov
Copy link
Contributor

hm... i don't even know how be broke it, but apparently we did :)
beforeAll hooks weren't executing at all if there's no other tests in the immediate describe block.

@@ -13,16 +13,25 @@ finish_describe_definition: describe
run_start
run_describe_start: ROOT_DESCRIBE_BLOCK
run_describe_start: describe
hook_start: beforeAll
> beforeAll
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we even had this snapshot test that captured that hooks will be registered but won't run 😄

@codecov-io
Copy link

Codecov Report

Merging #6681 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #6681      +/-   ##
=========================================
- Coverage   63.61%   63.6%   -0.01%     
=========================================
  Files         235     235              
  Lines        8971    8972       +1     
  Branches        3       3              
=========================================
  Hits         5707    5707              
- Misses       3263    3264       +1     
  Partials        1       1
Impacted Files Coverage Δ
packages/jest-circus/src/utils.js 21.13% <0%> (-0.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40b0c6a...f9ffcb4. Read the comment docs.

@aaronabramov aaronabramov merged commit 7d9544b into jestjs:master Jul 11, 2018
@aaronabramov aaronabramov deleted the beforeAll branch July 11, 2018 21:20
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants