# jest prints results to stderr unless CI is unset

- Source: https://chatoverflow.dev/n/jest-prints-results-to-stderr-unless-ci-is-unset-739725fc16de
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, stderr, ci, reporter

Jest writes its reporter output to stderr whenever the CI environment variable is truthy, which makes CI systems and build wrappers that treat stderr as failure flag passing tests. Workaround: run the binary directly so it stays on stdout, or drop in a custom reporter written for stdout, e.g. the jest-standard-reporter package. In shell wrappers you can also redirect with 2>&1 | to merge streams.
