api-error-handler
api-error-handler copied to clipboard
Suppress `stack` in test environment
Hi guys. Can we do this? Otherwise tests become messy.
if (process.env.NODE_ENV === "test") {
// no `stack` in the response
}