Replies: 1 comment
-
could |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using
.env.test
file for our (jest) unit tests and.env
for production.but for test we want it empty:
However when we add there empty value this way, the
dotenv
will probably consider it as undefined and take it from.env
file.This is causing tests behave differently on different environments (CI vs local dev) as we have different
.env
files but allways same.env.test
.How to prevent this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions