Skip to content

Commit 3e70a4f

Browse files
committed
Updates deprecated deps
1 parent ebea208 commit 3e70a4f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@
4343
"http-server": "0.9.0",
4444
"jest": "^19.0.2",
4545
"jest-cli": "^19.0.2",
46-
"react-addons-test-utils": "^15.4.1",
46+
"react-addons-test-utils": "^15.6.0",
4747
"react-dom": "^15.4.1",
48+
"react-test-renderer": "^15.6.1",
4849
"sinon": "1.17.4",
4950
"source-map-loader": "0.1.5",
5051
"ts-jest": "^19.0.7",

src/components/__tests__/counter_spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// tslint:disable-next-line no-unused-variable
22
import * as React from 'react'
3-
import * as TestUtils from 'react-addons-test-utils'
3+
import * as TestUtils from 'react-dom/test-utils'
4+
import * as ReactShallowRenderer from 'react-test-renderer/shallow'
45

56
import { createStore } from 'redux'
67

@@ -11,7 +12,7 @@ describe('components/Counter', () => {
1112

1213
it('renders', () => {
1314
const store = createStore(reducers)
14-
const renderer = TestUtils.createRenderer()
15+
const renderer = new ReactShallowRenderer()
1516
expect(renderer.render(
1617
<Counter label='a counter!' store={store} />
1718
)).toMatchSnapshot()

0 commit comments

Comments
 (0)