Add new default reporter for github actions by MatteoH2O1999 · Pull Request #13626 · jestjs/jest (original) (raw)

I'm not allowed to push to this PR - @MatteoH2O1999 could you merge in main and apply this diff?

diff --git c/CHANGELOG.md w/CHANGELOG.md index 1a8e6b128f..3914ef60ec 100644 --- c/CHANGELOG.md +++ w/CHANGELOG.md @@ -2,6 +2,8 @@

Features

+- [@jest/reporters] New functionality for Github Actions Reporter: automatic log folding (#13626) +

Fixes

Fixes

diff --git c/website/versioned_docs/version-29.4/Configuration.md w/website/versioned_docs/version-29.4/Configuration.md index 0a071c26c7..eebddd8138 100644 --- c/website/versioned_docs/version-29.4/Configuration.md +++ w/website/versioned_docs/version-29.4/Configuration.md @@ -1278,12 +1278,12 @@ export default config;

GitHub Actions Reporter

-If included in the list, the built-in GitHub Actions Reporter will annotate changed files with test failure messages: +If included in the list, the built-in GitHub Actions Reporter will annotate changed files with test failure messages and (if used with 'silent: false') print logs with github group features for easy navigation. Note that 'default' should not be used in this case as 'github-actions' will handle that already, so remember to also include 'summary'. If you wish to use it only for annotations simply leave only the reporter without options as the default value of 'silent' is 'true':

```js tab /** @type {import('jest').Config} */ const config = {

module.exports = config; @@ -1293,7 +1293,7 @@ module.exports = config; import type {Config} from 'jest';

const config: Config = {

export default config;

I forgot to merge this before releasing 29.4, so I'm thinking to make a quick patch release with this 🙂