Skip to content

[Bug]: Github Actions reporter swallows console output #15747

@richvdh

Description

@richvdh

Version

30.0.5

Steps to reproduce

  1. Clone repo at richvdh/jest-test
  2. npm install
  3. GITHUB_ACTIONS=1 npm test

Expected behavior

The test repo contains two test suites, each of which log to the console. I would expect that console output to be displayed.

Actual behavior

No sign of the console output:

::group::PASS a.test.js (71 ms)
  ✓ a (3 ms)
::endgroup::
::group::PASS b.test.js (11 ms)
  ✓ b (1 ms)
::endgroup::

Test Suites: 2 passed, 2 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        0.112 s, estimated 1 s
Ran all test suites.

For the avoidance of doubt: the console output is still hidden even if the tests fail.

Additional context

No response

Environment

System:
    OS: Linux 6.12 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
  Binaries:
    Node: 22.17.0 - ~/.nvm/versions/node/v22.17.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v22.17.0/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.17.0/bin/npm
  npmPackages:
    jest: ^30.0.0 => 30.0.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions