@testing-library/react-hooks
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -1,3 +0,3 @@ | ||
declare const renderHook: <TProps, TResult>(callback: (props: TProps) => TResult, options?: import("./types/react").RenderHookOptions<TProps> | undefined) => import("./types").RenderHookResult<TProps, TResult, import("./types").Renderer<TProps>>, act: import("./types").Act, cleanup: () => void, addCleanup: (callback: import("./types").CleanupCallback) => () => void, removeCleanup: (callback: import("./types").CleanupCallback) => void, suppressErrorOutput: () => () => void; | ||
declare const renderHook: <TProps, TResult>(callback: (props: TProps) => TResult, options?: import("./types/react").RenderHookOptions<TProps> | undefined) => import("./types").RenderHookResult<TProps, TResult, import("./types").Renderer<TProps>>, act: import("./types").Act, cleanup: () => Promise<void>, addCleanup: (callback: import("./types").CleanupCallback) => () => void, removeCleanup: (callback: import("./types").CleanupCallback) => void, suppressErrorOutput: () => () => void; | ||
export { renderHook, act, cleanup, addCleanup, removeCleanup, suppressErrorOutput }; | ||
export * from './types/react'; |
@@ -13,3 +13,3 @@ import { ComponentType } from 'react'; | ||
act: Act; | ||
cleanup: () => void; | ||
cleanup: () => Promise<void>; | ||
addCleanup: (callback: CleanupCallback) => () => void; | ||
@@ -16,0 +16,0 @@ removeCleanup: (callback: CleanupCallback) => void; |
{ | ||
"name": "@testing-library/react-hooks", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Simple and complete React hooks testing utilities that encourage good testing practices.", | ||
@@ -63,4 +63,4 @@ "main": "lib/index.js", | ||
"docz-utils": "2.3.0", | ||
"eslint": "7.27.0", | ||
"kcd-scripts": "10.0.0", | ||
"eslint": "7.29.0", | ||
"kcd-scripts": "11.1.0", | ||
"prettier": "^2.2.1", | ||
@@ -71,3 +71,3 @@ "react": "17.0.2", | ||
"ts-node": "^10.0.0", | ||
"typescript": "4.2.4" | ||
"typescript": "4.3.4" | ||
}, | ||
@@ -74,0 +74,0 @@ "peerDependencies": { |
@@ -248,2 +248,3 @@ <div align="center"> | ||
<td align="center"><a href="https://github.com/andyrooger"><img src="https://avatars.githubusercontent.com/u/420834?v=4?s=100" width="100px;" alt=""/><br /><sub><b>andyrooger</b></sub></a><br /><a href="https://github.com/testing-library/react-hooks-testing-library/commits?author=andyrooger" title="Code">π»</a></td> | ||
<td align="center"><a href="https://github.com/bdwain"><img src="https://avatars.githubusercontent.com/u/3982094?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bryan Wain</b></sub></a><br /><a href="https://github.com/testing-library/react-hooks-testing-library/issues?q=author%3Abdwain" title="Bug reports">π</a> <a href="https://github.com/testing-library/react-hooks-testing-library/pulls?q=is%3Apr+reviewed-by%3Abdwain" title="Reviewed Pull Requests">π</a></td> | ||
</tr> | ||
@@ -250,0 +251,0 @@ </table> |
@@ -27,3 +27,3 @@ import { ComponentType } from 'react' | ||
act: Act | ||
cleanup: () => void | ||
cleanup: () => Promise<void> | ||
addCleanup: (callback: CleanupCallback) => () => void | ||
@@ -30,0 +30,0 @@ removeCleanup: (callback: CleanupCallback) => void |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291
132613
97
2767
1