what is the best way to load environment variables? #1632
Unanswered
trevorpfiz
asked this question in
Q&A
Replies: 1 comment
-
Your use case is not clear. What are you trying to achieve? In general it's not a bad thing to load a lot of providers, if that's what you do in the real app, then you should probably do it for the tests as well, this way your tests with resemble the real app. As for env vars, you could try to pass them through Jest invocation, e.g. |
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
-
Am I supposed to load in all of these providers? Maybe I am not doing this right, but I would need to load in some env vars to use the
ClerkProvider
for example?Beta Was this translation helpful? Give feedback.
All reactions