Skip to content

Commit dd62697

Browse files
committed
update examples for name change
1 parent a2f19fb commit dd62697

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default useCounter
8787

8888
```js
8989
// useCounter.test.js
90-
import { renderHook, act } from 'react-hooks-testing-library'
90+
import { renderHook, act } from '@testing-library/react-hooks'
9191
import useCounter from './useCounter'
9292

9393
test('should increment counter', () => {

test/typescript/renderHook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useCallback, useEffect } from 'react'
2-
import { renderHook } from 'react-hooks-testing-library'
2+
import { renderHook } from '@testing-library/react-hooks'
33

44
const useCounter = (initialCount: number = 0) => {
55
const [count, setCount] = useState(initialCount)

test/typescript/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"strict": true,
55
"baseUrl": "../../",
66
"paths": {
7-
"react-hooks-testing-library": ["typings/index.d.ts"]
7+
"@testing-library/react-hooks": ["typings/index.d.ts"]
88
}
99
}
1010
}

0 commit comments

Comments
 (0)