-
Notifications
You must be signed in to change notification settings - Fork 926
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
Testing: allow to stub logging #1273
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The |
🎉 This issue has been resolved in version 11.0.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 10.19.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When testing as document at https://probot.github.io/docs/testing/, there is currently no way to test what has been logged in my app. Logging can a relevant outcome of webhook handler life cycle, so we should make it easy to test for it.
We could introduce a new
Probot({ logger })
option which would need to be abunyan
instance.It's possible to work around that by directly mutating the
probot
instance:But that's not very elegant, and I wouldn't consider that a public API.
The text was updated successfully, but these errors were encountered: