Suppress `stack` in test environment
n-sviridenko opened this issue · comments
Nikita Sviridenko commented
Hi guys. Can we do this? Otherwise tests become messy.
if (process.env.NODE_ENV === "test") {
// no `stack` in the response
}
Express error handlers for JSON APIs
n-sviridenko opened this issue · comments
Hi guys. Can we do this? Otherwise tests become messy.
if (process.env.NODE_ENV === "test") {
// no `stack` in the response
}