Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Suppress stack in test environment #11

Open
n-sviridenko opened this issue Nov 30, 2019 · 0 comments
Open

Suppress stack in test environment #11

n-sviridenko opened this issue Nov 30, 2019 · 0 comments

Comments

@n-sviridenko
Copy link

n-sviridenko commented Nov 30, 2019

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

if (process.env.NODE_ENV === "test") {
  // no `stack` in the response
}
@n-sviridenko n-sviridenko changed the title Suppress stack in NODE_ENV === "test" Suppress stack in test environment Nov 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant