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
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 '
9191import useCounter from ' ./useCounter'
9292
9393test (' should increment counter' , () => {
Original file line number Diff line number Diff line change 11import { useState , useCallback , useEffect } from 'react'
2- import { renderHook } from 'react-hooks- testing-library'
2+ import { renderHook } from '@ testing-library/react-hooks '
33
44const useCounter = ( initialCount : number = 0 ) => {
55 const [ count , setCount ] = useState ( initialCount )
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments