Skip to content

Commit 76d112c

Browse files
author
Kent C. Dodds
committed
fix: docs pointed to old package
1 parent 7a794ad commit 76d112c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ primary guiding principle is:
9696
```javascript
9797
// __tests__/fetch.js
9898
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'
100105
// this adds custom jest matchers from jest-dom
101106
import 'jest-dom/extend-expect'
102107

@@ -145,7 +150,7 @@ This module is distributed via [npm][npm] which is bundled with [node][node] and
145150
should be installed as one of your project's `devDependencies`:
146151

147152
```
148-
npm install --save-dev react-testing-library
153+
npm install --save-dev @testing-library/react
149154
```
150155

151156
This library has `peerDependencies` listings for `react` and `react-dom`.
@@ -269,17 +274,16 @@ Links:
269274
[build]: https://travis-ci.org/testing-library/react-testing-library
270275
[coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/react-testing-library.svg?style=flat-square
271276
[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
276281
[spectrum-badge]: https://withspectrum.github.io/badge/badge.svg
277282
[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
279284
[license]: https://github.com/testing-library/react-testing-library/blob/master/LICENSE
280285
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
281286
[prs]: http://makeapullrequest.com
282-
[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square
283287
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
284288
[coc]: https://github.com/testing-library/react-testing-library/blob/master/CODE_OF_CONDUCT.md
285289
[github-watch-badge]: https://img.shields.io/github/watchers/testing-library/react-testing-library.svg?style=social
@@ -290,7 +294,6 @@ Links:
290294
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/testing-library/react-testing-library.svg?style=social
291295
[emojis]: https://github.com/all-contributors/all-contributors#emoji-key
292296
[all-contributors]: https://github.com/all-contributors/all-contributors
293-
[set-immediate]: https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate
294297
[guiding-principle]: https://twitter.com/kentcdodds/status/977018512689455106
295298
[bugs]: https://github.com/testing-library/react-testing-library/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Acreated-desc
296299
[requests]: https://github.com/testing-library/react-testing-library/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc+label%3Aenhancement+is%3Aopen

0 commit comments

Comments
 (0)