How to mock import.meta.env? #1606
Answered
by
sheremet-va
koenwoortman
asked this question in
Q&A
Replies: 1 comment 4 replies
-
import.meta.env.MODE = 'X' |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Demivan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my code I have a reference to
import.meta.env.MODE
. Can we mock this value in a test case?Such that I could run a test as if the value of
import.meta.env.MODE
was X.Beta Was this translation helpful? Give feedback.
All reactions