Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

@testing-library/react-hooks

Package Overview
Dependencies
Maintainers
16
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/react-hooks - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

src/__tests__/asyncHook.test.ts

2

lib/pure.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc