Skip to content

Vitest does not load .env file? #768

Answered by sheremet-va
IgnusG asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is a bug. I've tested it with stackltiz and can confirm env is not set: https://stackblitz.com/edit/vitest-dev-vitest-femj7g?file=test/basic.test.ts

You can use this as reproduction ^

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sheremet-va
Comment options

Answer selected by IgnusG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants