Skip to content

Commit

Permalink
Update react-hooks-testing-library to @testing-library package (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeyper authored and timdorr committed Jul 1, 2019
1 parent 7b44e33 commit 0324068
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 13 deletions.
51 changes: 42 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -57,6 +57,7 @@
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@testing-library/react": "^8.0.1",
"@testing-library/react-hooks": "^1.1.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"codecov": "^3.5.0",
Expand All @@ -74,7 +75,6 @@
"prettier": "^1.18.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-hooks-testing-library": "^0.5.1",
"react-test-renderer": "^16.8.6",
"redux": "^4.0.1",
"rimraf": "^2.6.3",
Expand Down
2 changes: 1 addition & 1 deletion test/hooks/useDispatch.spec.js
@@ -1,6 +1,6 @@
import React from 'react'
import { createStore } from 'redux'
import { renderHook } from 'react-hooks-testing-library'
import { renderHook } from '@testing-library/react-hooks'
import { Provider as ProviderMock, useDispatch } from '../../src/index.js'

const store = createStore(c => c + 1)
Expand Down
2 changes: 1 addition & 1 deletion test/hooks/useReduxContext.spec.js
@@ -1,4 +1,4 @@
import { renderHook } from 'react-hooks-testing-library'
import { renderHook } from '@testing-library/react-hooks'
import { useReduxContext } from '../../src/hooks/useReduxContext'

describe('React', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/hooks/useSelector.spec.js
Expand Up @@ -2,7 +2,7 @@

import React, { useCallback, useReducer } from 'react'
import { createStore } from 'redux'
import { renderHook, act } from 'react-hooks-testing-library'
import { renderHook, act } from '@testing-library/react-hooks'
import * as rtl from '@testing-library/react'
import {
Provider as ProviderMock,
Expand Down

0 comments on commit 0324068

Please sign in to comment.