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

feat(jest-core): GitHubActionsReporter goes live #12658

Merged
merged 9 commits into from Apr 10, 2022

Conversation

mrazauskas
Copy link
Contributor

Following up #11320

Summary

Here is an attempt to activate GitHubActionsReporter. If I get it right, it is better to keep it optional and configurable through: reporters: ['default', 'github-actions']. At least this feels good for now.


@ockham thanks for the job done. I really want to see GitHubActionsReporter in action. Apologies if there is any overlap.

Test plan

Green CI.

@mrazauskas
Copy link
Contributor Author

Very nice (this was failing on purpose, of course):

Screenshot 2022-04-09 at 20 11 13

@mrazauskas mrazauskas changed the title feat(jest-core): GitHubActionsReporter goes live (?) feat(jest-core): GitHubActionsReporter goes live Apr 9, 2022
Comment on lines +348 to +351
if (!reporters) {
this._setupDefaultReporters(collectCoverage);
return;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding NotifyReporter first, allows to return early. Also later reporters && checks become unnecessary.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

Yay!

packages/jest-config/src/constants.ts Outdated Show resolved Hide resolved
@SimenB SimenB merged commit 74ca3a6 into jestjs:main Apr 10, 2022
@mrazauskas mrazauskas deleted the feat-GitHubActions branch April 10, 2022 07:17
@ockham
Copy link
Contributor

ockham commented Apr 11, 2022

@ockham thanks for the job done. I really want to see GitHubActionsReporter in action. Apologies if there is any overlap.

@mrazauskas Quite the opposite -- Thanks a lot for getting this over the finish line! 🎉

@SimenB
Copy link
Member

SimenB commented Apr 19, 2022

https://github.com/facebook/jest/releases/tag/v28.0.0-alpha.9

@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 20, 2022
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.

None yet

4 participants