Skip to content

Commit 2cef97a

Browse files
committed
Update to scoped react-testing-library
1 parent 2ba7fad commit 2cef97a

File tree

5 files changed

+93
-107
lines changed

5 files changed

+93
-107
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@babel/preset-env": "7.4.5",
2525
"@babel/preset-react": "7.0.0",
2626
"@storybook/react": "5.0.11",
27+
"@testing-library/react": "^8.0.1",
2728
"all-contributors-cli": "6.6.1",
2829
"babel-core": "7.0.0-bridge.0",
2930
"babel-jest": "24.8.0",
@@ -43,7 +44,6 @@
4344
"prettier": "1.17.1",
4445
"react": "16.8.6",
4546
"react-dom": "16.8.6",
46-
"react-testing-library": "8.0.1",
4747
"ts-loader": "6.0.2",
4848
"typescript": "^3.5.1",
4949
"webpack": "4.32.1",

src/tests/ScrollArea.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { render } from "react-testing-library";
2+
import { render } from "@testing-library/react";
33
import { ScrollToContext } from "../ScrollTo";
44
import ScrollArea, { createRefPoly } from "../ScrollArea";
55

src/tests/ScrollTo.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { render, cleanup, fireEvent } from "react-testing-library";
2+
import { render, cleanup, fireEvent } from "@testing-library/react";
33
import { shallow } from "enzyme";
44
import ScrollTo from "../ScrollTo";
55

src/tests/ScrollToHOC.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { render, fireEvent, cleanup } from "react-testing-library";
2+
import { render, fireEvent, cleanup } from "@testing-library/react";
33
import ScrollToHOC from "../ScrollToHOC";
44

55
afterAll(cleanup);

0 commit comments

Comments
 (0)