Skip to content

Commit 708f809

Browse files
authored
Remove notes about some polyfills (#685)
1 parent 6dde3ae commit 708f809

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

docs/dom-testing-library/setup.mdx

-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,3 @@ With mocha, the test command would look something like this:
3232
```
3333
mocha --require jsdom-global/register
3434
```
35-
36-
> Note, depending on the version of Node you're running, you may also need to
37-
> add `core-js` and `regenerator-runtime` (if you're using babel 7) or
38-
> `babel-polyfill` (for babel 6).

docs/react-testing-library/setup.mdx

+6-10
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ module.exports = {
9797
9898
You can define your own custom queries as described in the example in the
9999
[Helpers API](dom-testing-library/api-helpers.mdx) documentation, or via the
100-
[`buildQueries`](dom-testing-library/api-helpers.mdx#buildqueries) helper.
101-
Then you can use them in any render call using the `queries` option. To make the
100+
[`buildQueries`](dom-testing-library/api-helpers.mdx#buildqueries) helper. Then
101+
you can use them in any render call using the `queries` option. To make the
102102
custom queries available globally, you can add them to your custom render method
103103
as shown below.
104104

@@ -281,16 +281,12 @@ With mocha, the test command would look something like this:
281281
mocha --require jsdom-global/register
282282
```
283283

284-
Note, depending on the version of Node you're running, you may also need to
285-
install @babel/polyfill (if you're using babel 7) or babel-polyfill (for babel
286-
6).
287-
288284
### Skipping Auto Cleanup
289285

290-
[`Cleanup`](api.mdx#cleanup) is called after each test automatically by default if
291-
the testing framework you're using supports the `afterEach` global (like mocha,
292-
Jest, and Jasmine). However, you may choose to skip the auto cleanup by setting
293-
the `RTL_SKIP_AUTO_CLEANUP` env variable to 'true'. You can do this with
286+
[`Cleanup`](api.mdx#cleanup) is called after each test automatically by default
287+
if the testing framework you're using supports the `afterEach` global (like
288+
mocha, Jest, and Jasmine). However, you may choose to skip the auto cleanup by
289+
setting the `RTL_SKIP_AUTO_CLEANUP` env variable to 'true'. You can do this with
294290
[`cross-env`](https://github.com/kentcdodds/cross-env) like so:
295291

296292
```

0 commit comments

Comments
 (0)