Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎src/index.js

Lines changed: 1 addition & 8 deletions
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 }

‎test/testHook.test.js

Lines changed: 0 additions & 81 deletions
This file was deleted.

‎typings/index.d.ts

Lines changed: 0 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /