Replies: 1 comment
-
The easiest way is to just clean up after the test. One way that will make your code execute within the Window context is to run it in a script inside the Window:
What testing tool are you using? Vitest has test isolation that might solve it for you. |
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 can't seem to just use this because it does not work.
What works is if I use the GlobalRegistrator. The same code would work. BUt the
it("c")
will inherit the new global variable"test"
from the previous itBeta Was this translation helpful? Give feedback.
All reactions