You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUNS ./test.js
PASS ./test.jsNFO (81668): Info
✓ test pino-pretty (6 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.129 s, estimated 1 s
Ran all test suites matching /test.js/i.
✨ Done in 0.37s.
The info message is partially truncated.
The error message is missing.
The text was updated successfully, but these errors were encountered:
All I can suggest is that if you need to verify the final NDJSON of individual logs, you should supply a stream that collects the logs and then inspect that collection. See pinojs/pino#1274 (comment).
I think we have a bug in our docs, I don't think Jest would ever render things correctly.
Is that confirmed that Jest won't ever render correctly? I'm also trying to follow those docs but it seems like even with sync: true the log entries are still showing up after tests
I am following the recommendation here: https://github.com/pinojs/pino-pretty/tree/db278755318e2f1c565df736bbedd7eb7a2fd73f#usage-with-jest
Reduced test case:
package.json
:test.js
:When I run
jest test.js
I get this output:The text was updated successfully, but these errors were encountered: