Replies: 2 comments
-
You can add |
Beta Was this translation helpful? Give feedback.
0 replies
-
For this use case I need to set it differently for each test file. I don't believe setupFiles can determine the which file is running, but even then, it would be preferable to couple it to the test file. Ok in that case I'll set up a vite plugin. |
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
-
I have some code whereby I want to mock a variable before the test has imported modules.
In this case it is
window.location.pathname
.Would evaluate as:
Looking for feedback on this idea.
Beta Was this translation helpful? Give feedback.
All reactions