Replies: 1 comment 2 replies
-
|
This is expected. Vitest default isolation is by test file and not each test case. The quick gotcha is to reset html by beforeEach(() => {
document.body.innerHTML = '';
}) |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I'm testing some vanilla code that creates DOM elements, but it looks like the isolation isn't working. The following tests fail:
Is there a way to fix this?
Beta Was this translation helpful? Give feedback.
All reactions