File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export default useCounter
87
87
88
88
``` js
89
89
// useCounter.test.js
90
- import { renderHook , act } from ' react-hooks- testing-library'
90
+ import { renderHook , act } from ' @ testing-library/react-hooks '
91
91
import useCounter from ' ./useCounter'
92
92
93
93
test (' should increment counter' , () => {
Original file line number Diff line number Diff line change 1
1
import { useState , useCallback , useEffect } from 'react'
2
- import { renderHook } from 'react-hooks- testing-library'
2
+ import { renderHook } from '@ testing-library/react-hooks '
3
3
4
4
const useCounter = ( initialCount : number = 0 ) => {
5
5
const [ count , setCount ] = useState ( initialCount )
Original file line number Diff line number Diff line change 4
4
"strict" : true ,
5
5
"baseUrl" : " ../../" ,
6
6
"paths" : {
7
- "react-hooks- testing-library" : [" typings/index.d.ts" ]
7
+ "@ testing-library/react-hooks " : [" typings/index.d.ts" ]
8
8
}
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments