Skip to content

Commit ae31811

Browse files
committed
Update dev dependencies
1 parent 19c112b commit ae31811

File tree

5 files changed

+657
-740
lines changed

5 files changed

+657
-740
lines changed

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ module.exports = {
2020
ecmaVersion: 2018,
2121
sourceType: 'module',
2222
},
23+
settings: {
24+
react: {
25+
version: 'detect',
26+
},
27+
},
2328
plugins: ['react', '@typescript-eslint', 'react-hooks'],
2429
rules: {
2530
'react/prop-types': 'off',

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@
4747
"@babel/preset-typescript": "^7.9.0",
4848
"@testing-library/jest-dom": "^4.1.0",
4949
"@testing-library/react": "^9.1.4",
50+
"@testing-library/react-hooks": "^3.2.1",
5051
"@types/jest": "^24.0.11",
5152
"@types/react": "^16.8.25",
52-
"@typescript-eslint/eslint-plugin": "^2.2.0",
53+
"@typescript-eslint/eslint-plugin": "^2.28.0",
5354
"@typescript-eslint/parser": "^2.2.0",
5455
"babel-jest": "^25.3.0",
55-
"eslint": "^6.3.0",
56+
"eslint": "^6.8.0",
5657
"eslint-plugin-import": "^2.18.2",
5758
"eslint-plugin-react": "^7.14.3",
5859
"eslint-plugin-react-hooks": "^2.1.2",
@@ -63,7 +64,7 @@
6364
"query-string": "^6.12.1",
6465
"react": "^16.9.0",
6566
"react-dom": "^16.9.0",
66-
"react-hooks-testing-library": "^0.3.7",
67+
"react-test-renderer": "^16.9.0",
6768
"rimraf": "^3.0.2",
6869
"typescript": "^3.8.3"
6970
},

src/__tests__/useQueryParam-test.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import * as React from 'react';
2-
import { renderHook, cleanup } from 'react-hooks-testing-library';
2+
import { cleanup, renderHook } from '@testing-library/react-hooks';
33
import {
4+
EncodedQuery,
45
NumberParam,
56
NumericArrayParam,
6-
EncodedQuery,
77
} from 'serialize-query-params';
8-
9-
import { useQueryParam, QueryParamProvider } from '../index';
10-
import {
11-
makeMockHistory,
12-
makeMockLocation,
13-
calledPushQuery,
14-
calledReplaceQuery,
15-
} from './helpers';
8+
import { QueryParamProvider, useQueryParam } from '../index';
9+
import { calledPushQuery, makeMockHistory, makeMockLocation } from './helpers';
1610

1711
// helper to setup tests
1812
function setupWrapper(query: EncodedQuery) {

src/__tests__/useQueryParams-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { renderHook, cleanup } from 'react-hooks-testing-library';
2+
import { renderHook, cleanup } from '@testing-library/react-hooks';
33
import {
44
NumberParam,
55
ArrayParam,

0 commit comments

Comments
 (0)