We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4a1e6 commit 77da5d0Copy full SHA for 77da5d0
docs/dom-testing-library/setup.mdx
@@ -18,7 +18,9 @@ the DOM and browser APIs that runs in node. If you're not using Jest and you
18
would like to run your tests in Node, then you must install jsdom yourself.
19
There's also a package called
20
[global-jsdom](https://github.com/modosc/global-jsdom) which can be used to
21
-setup the global environment to simulate the browser APIs.
+setup the global environment to simulate the browser APIs. Note that if you're using
22
+Vitest you only need to configure [`environment`](https://vitest.dev/config/#environment)
23
+to `jsdom` to achieve the same effect, you don't need global-jsdom.
24
25
First, install jsdom and global-jsdom.
26
0 commit comments