Skip to content

Commit da05da4

Browse files
jdelucaaSimenB
authored andcommitted
[docs] Updated react-testing-library imports in website (#8757)
1 parent 8902dbe commit da05da4

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
- `[docs]` Fix variable name in custom-matcher-api code example ([#8582](https://github.com/facebook/jest/pull/8582))
4040
- `[docs]` Fix example used in custom environment docs ([#8617](https://github.com/facebook/jest/pull/8617))
4141
- `[docs]` Updated react tutorial to refer to new package of react-testing-library (@testing-library/react) ([#8753](https://github.com/facebook/jest/pull/8753))
42+
- `[docs]` Updated imports of react-testing-library to @testing-library/react in website ([#8757](https://github.com/facebook/jest/pull/8757))
4243
- `[jest-core]` Add `getVersion` (moved from `jest-cli`) ([#8706](https://github.com/facebook/jest/pull/8706))
4344

4445
### Performance

docs/TutorialReact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export default class CheckboxWithLabel extends React.Component {
253253
```javascript
254254
// __tests__/CheckboxWithLabel-test.js
255255
import React from 'react';
256-
import {render, fireEvent, cleanup} from 'react-testing-library';
256+
import {render, fireEvent, cleanup} from '@testing-library/react';
257257
import CheckboxWithLabel from '../CheckboxWithLabel';
258258

259259
// automatically unmount and cleanup DOM after the test is finished.

website/versioned_docs/version-24.0/TutorialReact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default class CheckboxWithLabel extends React.Component {
254254
```javascript
255255
// __tests__/CheckboxWithLabel-test.js
256256
import React from 'react';
257-
import {render, fireEvent, cleanup} from 'react-testing-library';
257+
import {render, fireEvent, cleanup} from '@testing-library/react';
258258
import CheckboxWithLabel from '../CheckboxWithLabel';
259259

260260
// automatically unmount and cleanup DOM after the test is finished.

website/versioned_docs/version-24.8/TutorialReact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default class CheckboxWithLabel extends React.Component {
254254
```javascript
255255
// __tests__/CheckboxWithLabel-test.js
256256
import React from 'react';
257-
import {render, fireEvent, cleanup} from 'react-testing-library';
257+
import {render, fireEvent, cleanup} from '@testing-library/react';
258258
import CheckboxWithLabel from '../CheckboxWithLabel';
259259

260260
// automatically unmount and cleanup DOM after the test is finished.

0 commit comments

Comments
 (0)