Skip to content

Commit ac7aaf9

Browse files
committed
remove deprecated testHook function
1 parent 3469cac commit ac7aaf9

File tree

3 files changed

+1
-91
lines changed

3 files changed

+1
-91
lines changed

Diff for: src/index.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,4 @@ function renderHook(callback, { initialProps, wrapper } = {}) {
9090
}
9191
}
9292

93-
function testHook(...args) {
94-
console.warn(
95-
'`testHook` has been deprecated and will be removed in a future release. Please use `renderHook` instead.'
96-
)
97-
return renderHook(...args)
98-
}
99-
100-
export { renderHook, act, testHook }
93+
export { renderHook, act }

Diff for: test/testHook.test.js

-81
This file was deleted.

Diff for: typings/index.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ export function renderHook<P, R>(
1414
readonly rerender: (hookProps?: P) => void
1515
}
1616

17-
export const testHook: typeof renderHook
18-
1917
export function act(callback: () => void): void

0 commit comments

Comments
 (0)