api-error-handler icon indicating copy to clipboard operation
api-error-handler copied to clipboard

Suppress `stack` in test environment

Open n-sviridenko opened this issue 6 years ago • 0 comments

Hi guys. Can we do this? Otherwise tests become messy.

if (process.env.NODE_ENV === "test") {
  // no `stack` in the response
}

n-sviridenko avatar Nov 30 '19 11:11 n-sviridenko