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
Uh oh!
There was an error while loading. Please reload this page.
-
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.MODEwas X.Beta Was this translation helpful? Give feedback.
All reactions