Skip to content

Commit 0324068

Browse files
mpeypertimdorr
authored andcommitted
Update react-hooks-testing-library to @testing-library package (#1344)
1 parent 7b44e33 commit 0324068

File tree

5 files changed

+46
-13
lines changed

5 files changed

+46
-13
lines changed

package-lock.json

Lines changed: 42 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@babel/plugin-transform-runtime": "^7.4.4",
5858
"@babel/preset-env": "^7.4.5",
5959
"@testing-library/react": "^8.0.1",
60+
"@testing-library/react-hooks": "^1.1.0",
6061
"babel-eslint": "^10.0.1",
6162
"babel-jest": "^24.8.0",
6263
"codecov": "^3.5.0",
@@ -74,7 +75,6 @@
7475
"prettier": "^1.18.2",
7576
"react": "^16.8.6",
7677
"react-dom": "^16.8.6",
77-
"react-hooks-testing-library": "^0.5.1",
7878
"react-test-renderer": "^16.8.6",
7979
"redux": "^4.0.1",
8080
"rimraf": "^2.6.3",

test/hooks/useDispatch.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { createStore } from 'redux'
3-
import { renderHook } from 'react-hooks-testing-library'
3+
import { renderHook } from '@testing-library/react-hooks'
44
import { Provider as ProviderMock, useDispatch } from '../../src/index.js'
55

66
const store = createStore(c => c + 1)

test/hooks/useReduxContext.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { renderHook } from 'react-hooks-testing-library'
1+
import { renderHook } from '@testing-library/react-hooks'
22
import { useReduxContext } from '../../src/hooks/useReduxContext'
33

44
describe('React', () => {

test/hooks/useSelector.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React, { useCallback, useReducer } from 'react'
44
import { createStore } from 'redux'
5-
import { renderHook, act } from 'react-hooks-testing-library'
5+
import { renderHook, act } from '@testing-library/react-hooks'
66
import * as rtl from '@testing-library/react'
77
import {
88
Provider as ProviderMock,

0 commit comments

Comments
 (0)