Skip to content

Commit 4f1014c

Browse files
authored
Replace jsdom-global with global-jsdom (testing-library#760)
1 parent 3ec5c6a commit 4f1014c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/react-testing-library/setup.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,19 @@ configuration with Jest).
294294
`jsdom` is a pure JavaScript implementation of the DOM and browser APIs that
295295
runs in Node. If you're not using Jest and you would like to run your tests in
296296
Node, then you must install jsdom yourself. There's also a package called
297-
`jsdom-global` which can be used to setup the global environment to simulate the
297+
`global-jsdom` which can be used to setup the global environment to simulate the
298298
browser APIs.
299299

300-
First, install `jsdom` and `jsdom-global`.
300+
First, install `jsdom` and `global-jsdom`.
301301

302302
```
303-
npm install --save-dev jsdom jsdom-global
303+
npm install --save-dev jsdom global-jsdom
304304
```
305305

306306
With mocha, the test command would look something like this:
307307

308308
```
309-
mocha --require jsdom-global/register
309+
mocha --require global-jsdom/register
310310
```
311311

312312
### Skipping Auto Cleanup

0 commit comments

Comments
 (0)