.env not used when running test #838
-
Hey ! I'm new to vitest and when I run a basic test I have those messages
Running test with nuxt context throw me errors due to .env not setup When i I tried
Please if you have an idea of where to dig it will really help me 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
TheAlexLichter
May 7, 2024
Replies: 1 comment 4 replies
-
Can you provide a reproduction? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@max13h Use a file called
.env.test
and put your env vars in there :) Make sure they are used in your "actual application" in the same way.