This environment variable is often used to detect whether app code runs inside Jest, it's good to have it for compatibilty (and to allow me to skip having to deal with module mocks).
Edit: I just found out about NODE_ENV=test which already works with this runner, so I'll be using that. You decide whether you want this 😉.
This environment variable is often used to detect whether app code runs inside Jest, it's good to have it for compatibilty (and to allow me to skip having to deal with module mocks).
Edit: I just found out about
NODE_ENV=test
which already works with this runner, so I'll be using that. You decide whether you want this 😉.