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
10
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 1.0.3 to 1.0.4

10

package.json
{
"name": "@testing-library/react-hooks",
"version": "1.0.3",
"version": "1.0.4",
"description": "Simple and complete React hooks testing utilities that encourage good testing practices.",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

"build": "babel --out-dir lib src",
"format": "prettier-eslint --write \"**/*.{js,json,md,mdx}\"",
"format": "prettier-eslint --write \"**/*.{js,ts,json,yml,md,mdx}\"",
"coverage": "codecov",

@@ -41,3 +41,3 @@ "test": "jest",

"@babel/runtime": "^7.4.2",
"@types/react": "16.8.22",
"@types/react": "^16.8.22",
"@types/react-test-renderer": "^16.8.2"

@@ -59,3 +59,3 @@ },

"docz-theme-default": "^1.0.4",
"eslint": "5.16.0",
"eslint": "6.0.0",
"eslint-config-prettier": "5.0.0",

@@ -105,3 +105,3 @@ "eslint-plugin-prettier": "3.1.0",

"lint-staged": {
"*.{js,json,md}": [
"*.{js,ts,json,yml,md,mdx}": [
"prettier-eslint --write",

@@ -108,0 +108,0 @@ "git add"

@@ -113,10 +113,18 @@ <div align="center">

We are using [react-test-renderer](https://www.npmjs.com/package/react-test-renderer) as a
peerDependency, so make sure you have installed this library as well. Install the same version like
you use in react.
### Peer Dependencies
`react-hooks-testing-library` does not come bundled with a version of
[`react`](https://www.npmjs.com/package/react) or
[`react-test-renderer`](https://www.npmjs.com/package/react-test-renderer) to allow you to install
the specific version you want to test against. Generally, the installed versions for `react` and
`react-test-renderer` should match:
```sh
npm install --save-dev react-test-renderer@x.y.z
npm install react@^x.y.z
npm install --save-dev react-test-renderer@^x.y.z
```
Both of these dependecies must be installed as at least version `16.8.0` to be compatible with
`react-hooks-testing-library`.
## Documentation

@@ -123,0 +131,0 @@

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