@testing-library/react-hooks
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"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 @@ |
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
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
21509
184
+ Added@types/react@16.14.62(transitive)
+ Added@types/scheduler@0.16.8(transitive)
+ Addedcsstype@3.1.3(transitive)
- Removed@types/react@16.8.22(transitive)
- Removedcsstype@2.6.21(transitive)
Updated@types/react@^16.8.22