Even thought all the JEST tests pass, they are logged as [ERROR] in mvn output.
Jest is passing all output to Stderr
[ERROR] PASS tests/spec/MyComponent.spec.js (9.744s)
[ERROR]
[ERROR] Snapshot Summary
[ERROR] › 2 snapshots written in 1 test suite.
[ERROR]
[ERROR] Test Suites: 5 skipped, 3 passed, 3 of 8 total
[ERROR] Tests: 10 skipped, 6 passed, 16 total
[ERROR] Snapshots: 2 added, 2 total
[ERROR] Time: 20.315s
[ERROR] Ran all test suites.
Any idea?
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. Thank you :)
It's possible that this is because Jest may choose to print to stderr, rather than stdout (when --json is given for example). You may be able to re-route where the test output is written to.
@cpojer Jest is using stderr by default, even without --json or --useStderr