-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logs missing in Jest tests #480
Comments
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 |
Confirming this because I'm also using |
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: