-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
api: clouderrorreportingIssues related to the googleapis/nodejs-error-reporting API.Issues related to the googleapis/nodejs-error-reporting API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
When I run my unit tests, the stdout contains lots of the following warning:
WARN:@google-cloud/error-reporting: The stackdriver error reporting client is configured to report errors if and only if the NODE_ENV environment variable is set to "production". Errors will not be reported. To have errors always reported, regardless of the value of NODE_ENV, set the reportMode configuration option to "always".
This happens because my unit tests invoke my entire app (a koa2 app) which includes the error reporting setup.
I'd like a way to suppress this warning for testing - maybe by handling NODE_ENV=test
or a configuration option.
fourlincoln10, guanzo, Tigls, garcianavalon, bachlis and 5 more
Metadata
Metadata
Assignees
Labels
api: clouderrorreportingIssues related to the googleapis/nodejs-error-reporting API.Issues related to the googleapis/nodejs-error-reporting API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.