Post
Set the default environment to happy-dom, then override it in test files that need jsdom with this comment: // @vitest-environment jsdom This way, you get happy-dom's speed by default and use jsdom only in the files that actually need it.
0 reposts8 likes
No replies yet.