@@ -96,7 +96,12 @@ primary guiding principle is:
96
96
``` javascript
97
97
// __tests__/fetch.js
98
98
import React from ' react'
99
- import {render , fireEvent , cleanup , waitForElement } from ' react-testing-library'
99
+ import {
100
+ render ,
101
+ fireEvent ,
102
+ cleanup ,
103
+ waitForElement ,
104
+ } from ' @testing-library/react'
100
105
// this adds custom jest matchers from jest-dom
101
106
import ' jest-dom/extend-expect'
102
107
@@ -145,7 +150,7 @@ This module is distributed via [npm][npm] which is bundled with [node][node] and
145
150
should be installed as one of your project's ` devDependencies ` :
146
151
147
152
```
148
- npm install --save-dev react- testing-library
153
+ npm install --save-dev @ testing-library/react
149
154
```
150
155
151
156
This library has ` peerDependencies ` listings for ` react ` and ` react-dom ` .
@@ -269,17 +274,16 @@ Links:
269
274
[ build ] : https://travis-ci.org/testing-library/react-testing-library
270
275
[ coverage-badge ] : https://img.shields.io/codecov/c/github/testing-library/react-testing-library.svg?style=flat-square
271
276
[ coverage ] : https://codecov.io/github/testing-library/react-testing-library
272
- [ version-badge ] : https://img.shields.io/npm/v/react- testing-library.svg?style=flat-square
273
- [ package ] : https://www.npmjs.com/package/react- testing-library
274
- [ downloads-badge ] : https://img.shields.io/npm/dm/react- testing-library.svg?style=flat-square
275
- [ npmtrends ] : http://www.npmtrends.com/react- testing-library
277
+ [ version-badge ] : https://img.shields.io/npm/v/@ testing-library/react .svg?style=flat-square
278
+ [ package ] : https://www.npmjs.com/package/@ testing-library/react
279
+ [ downloads-badge ] : https://img.shields.io/npm/dm/@ testing-library/react .svg?style=flat-square
280
+ [ npmtrends ] : http://www.npmtrends.com/@ testing-library/react
276
281
[ spectrum-badge ] : https://withspectrum.github.io/badge/badge.svg
277
282
[ spectrum ] : https://spectrum.chat/testing-library
278
- [ license-badge ] : https://img.shields.io/npm/l/react- testing-library.svg?style=flat-square
283
+ [ license-badge ] : https://img.shields.io/npm/l/@ testing-library/react .svg?style=flat-square
279
284
[ license ] : https://github.com/testing-library/react-testing-library/blob/master/LICENSE
280
285
[ prs-badge ] : https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
281
286
[ prs ] : http://makeapullrequest.com
282
- [ donate-badge ] : https://img.shields.io/badge/$-support-green.svg?style=flat-square
283
287
[ coc-badge ] : https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
284
288
[ coc ] : https://github.com/testing-library/react-testing-library/blob/master/CODE_OF_CONDUCT.md
285
289
[ github-watch-badge ] : https://img.shields.io/github/watchers/testing-library/react-testing-library.svg?style=social
@@ -290,7 +294,6 @@ Links:
290
294
[ twitter-badge ] : https://img.shields.io/twitter/url/https/github.com/testing-library/react-testing-library.svg?style=social
291
295
[ emojis ] : https://github.com/all-contributors/all-contributors#emoji-key
292
296
[ all-contributors ] : https://github.com/all-contributors/all-contributors
293
- [ set-immediate ] : https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate
294
297
[ guiding-principle ] : https://twitter.com/kentcdodds/status/977018512689455106
295
298
[ bugs ] : https://github.com/testing-library/react-testing-library/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Acreated-desc
296
299
[ requests ] : https://github.com/testing-library/react-testing-library/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc+label%3Aenhancement+is%3Aopen
0 commit comments