You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: day-24/post.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ For every test that we write against React, we'll want to import react into our
45
45
46
46
```javascript
47
47
importReactfrom'react';
48
-
importTestUtilsfrom'react-addons-test-utils';
48
+
importTestUtilsfrom"react-dom/test-utils";
49
49
50
50
describe('Timeline', () => {
51
51
// Tests go here
@@ -56,7 +56,7 @@ Since we're testing the `Timeline` component here, we'll also want to bring that
56
56
57
57
```javascript
58
58
importReactfrom'react';
59
-
importTestUtilsfrom'react-addons-test-utils';
59
+
importTestUtilsfrom"react-dom/test-utils";
60
60
61
61
importTimelinefrom'../Timeline';
62
62
@@ -65,11 +65,11 @@ describe('Timeline', () => {
65
65
})
66
66
```
67
67
68
-
Let's write our first test. Our first assumption is pretty simple to test. We're testing to make sure the element is wrapped in a `.notificationsFrame` class. With every test we'll write, we'll need to render our application into the working test document. The `react-addons-test-utils` library provides a function to do just this called `renderIntoDocument()`:
68
+
Let's write our first test. Our first assumption is pretty simple to test. We're testing to make sure the element is wrapped in a `.notificationsFrame` class. With every test we'll write, we'll need to render our application into the working test document. The `react-dom/test-utils` library provides a function to do just this called `renderIntoDocument()`:
69
69
70
70
```javascript
71
71
importReactfrom'react';
72
-
importTestUtilsfrom'react-addons-test-utils';
72
+
importTestUtilsfrom"react-dom/test-utils";
73
73
74
74
importTimelinefrom'../Timeline';
75
75
@@ -90,7 +90,7 @@ The `findRenderedDOMComponentWithClass()` function accepts _two_ arguments. The
0 commit comments