Skip to content

Conversation

satanTime
Copy link
Contributor

@satanTime satanTime commented Jun 5, 2021

closes #11483

Summary

The issue is described here: #11483

A public interface to subscribe to events from jest-circus.

Test plan

No changes in UI.

@facebook-github-bot
Copy link
Contributor

Hi @satanTime!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2021

Codecov Report

Merging #11529 (fcde463) into main (faef0b4) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #11529      +/-   ##
==========================================
- Coverage   68.47%   68.41%   -0.07%     
==========================================
  Files         324      324              
  Lines       16967    16972       +5     
  Branches     5060     5062       +2     
==========================================
- Hits        11618    11611       -7     
- Misses       5317     5329      +12     
  Partials       32       32              
Impacted Files Coverage Δ
packages/jest-circus/src/index.ts 70.66% <ø> (ø)
packages/jest-circus/src/state.ts 95.65% <100.00%> (+16.70%) ⬆️
packages/jest-circus/src/types.ts 100.00% <100.00%> (ø)
packages/jest-circus/src/eventHandler.ts 0.75% <0.00%> (-9.10%) ⬇️
packages/jest-circus/src/formatNodeAssertErrors.ts 9.21% <0.00%> (-2.64%) ⬇️
packages/jest-circus/src/utils.ts 11.32% <0.00%> (-0.48%) ⬇️

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 faef0b4...fcde463. Read the comment docs.

Copy link

@fredericojesus fredericojesus left a comment

Choose a reason for hiding this comment

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

Tks for this PR. Looking forward for seeing it released. I don't see any issue with the code, like the approach.

Copy link

@szakharchenko szakharchenko left a comment

Choose a reason for hiding this comment

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

Exposing testing events in the API makes so much sense that I basically assumed it was there when I started using Jest, only to find out that it wasn't. The proposed changes seem in line with what's already in there. One may argue that this is a feature, not a fix, and adjust the CHANGELOG.md entry, but other than that, things look fine.

@satanTime
Copy link
Contributor Author

HI @SimenB,

the PR has been rebased.

@satanTime satanTime force-pushed the feature/11483 branch 2 times, most recently from a37105c to ee436cb Compare September 11, 2021 16:18
@satanTime
Copy link
Contributor Author

HI @SimenB,

the PR has been rebased.

@satanTime
Copy link
Contributor Author

Hi @SimenB,

the PR has been rebased.

@satanTime satanTime force-pushed the feature/11483 branch 2 times, most recently from fad07ab to 3f03ebf Compare September 20, 2021 15:52
@satanTime
Copy link
Contributor Author

Hi @SimenB,

the PR has been rebased.

@satanTime satanTime force-pushed the feature/11483 branch 2 times, most recently from 902c7c2 to 1206b5b Compare October 31, 2021 12:09
@netlify
Copy link

netlify bot commented Apr 30, 2023

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 9c013d2
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/682edf80c272830008d4cc72
😎 Deploy Preview https://deploy-preview-11529--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@satanTime
Copy link
Contributor Author

Hi @SimenB, happy Wednesday!

Is there an opportunity to get your attention on this issue again?
The fix is here for more than 2 years.

@satanTime satanTime force-pushed the feature/11483 branch 4 times, most recently from aacab4d to 23e5fd8 Compare January 13, 2025 08:37
Copy link
Member

@cpojer cpojer left a comment

Choose a reason for hiding this comment

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

Let's get it into Jest 30.

@cpojer cpojer merged commit fb8e774 into jestjs:main May 22, 2025
20 of 32 checks passed
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 Jun 22, 2025
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.

the same context for addEventHandler from jest-circus/src/state.ts