Skip to content

Commit 77da5d0

Browse files
authored
docs: Vitest doesn't need global-jsdom (#1084)
1 parent bc4a1e6 commit 77da5d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/dom-testing-library/setup.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ the DOM and browser APIs that runs in node. If you're not using Jest and you
1818
would like to run your tests in Node, then you must install jsdom yourself.
1919
There's also a package called
2020
[global-jsdom](https://github.com/modosc/global-jsdom) which can be used to
21-
setup the global environment to simulate the browser APIs.
21+
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.
2224

2325
First, install jsdom and global-jsdom.
2426

0 commit comments

Comments
 (0)