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

Add github-actions-jest-reporter package #115

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Add github-actions-jest-reporter package #115

merged 1 commit into from
Nov 17, 2022

Conversation

MatteoH2O1999
Copy link
Contributor

Add the github-actions-jest-reporter package. This package emulates jest default one but uses Github Actions groups for logging, thus folding passed test and leaving failed ones spread out to show at first glance what went wrong but preserving all the details.

@SimenB
Copy link
Member

SimenB commented Nov 17, 2022

This is awesome! I think that should be the default behaviour in Jesta s well - would you be up for sending a PR?

/cc @mrazauskas

@SimenB SimenB merged commit 588d37f into jest-community:main Nov 17, 2022
@mrazauskas
Copy link
Contributor

Can't agree more, it would be really nice to have this behaviour in Jest. Should be easy to implement, if it is possible to avoid @actions/core dependency.

@SimenB
Copy link
Member

SimenB commented Nov 17, 2022

@MatteoH2O1999
Copy link
Contributor Author

The problem with that would be that you would have to pay attention to any change to the Github runner software. Depending on @actions/core allows to abstract from that.
If I were to add this to Jest, I would add github-actions-jest-reporter as a dependency and use the exported reporter instead of the default one if verbose is false and GITHUB_ACTIONS is in the environment.
If you agree with that, let me know so I can open a PR, otherwise I am of course open to your suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants