Skip to content

Commit 6627288

Browse files
authored
Update deps (#231)
1 parent 2658d65 commit 6627288

File tree

5 files changed

+544
-546
lines changed

5 files changed

+544
-546
lines changed

.lintstagedrc

-4
This file was deleted.

.lintstagedrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
'**/*.ts?(x)': () => [
3+
'tsc -p tsconfig.json --noEmit',
4+
'eslint --fix',
5+
],
6+
'*.md': ['prettier --parser markdown --write', 'markdownlint'],
7+
}

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@emotion/styled": "11.0.0",
2727
"@material-ui/core": "4.11.2",
2828
"@material-ui/icons": "4.11.2",
29-
"chokidar": "3.4.3",
30-
"dayjs": "1.9.8",
29+
"chokidar": "3.5.0",
30+
"dayjs": "1.10.3",
3131
"emotion": "11.0.0",
3232
"htmr": "0.9.2",
3333
"jdown": "1.0.4",
@@ -44,7 +44,7 @@
4444
"react-static-plugin-sitemap": "7.4.2",
4545
"react-static-plugin-source-filesystem": "7.4.2",
4646
"react-static-plugin-typescript": "7.4.2",
47-
"react-use": "15.3.4"
47+
"react-use": "15.3.8"
4848
},
4949
"devDependencies": {
5050
"@babel/core": "7.12.10",
@@ -55,13 +55,13 @@
5555
"@storybook/addons": "6.1.11",
5656
"@storybook/cli": "6.1.11",
5757
"@storybook/react": "6.1.11",
58-
"@testing-library/react-hooks": "3.7.0",
58+
"@testing-library/react-hooks": "4.0.0",
5959
"@types/enzyme": "3.10.8",
6060
"@types/enzyme-adapter-react-16": "1.0.6",
6161
"@types/faker": "5.1.5",
62-
"@types/jest": "26.0.19",
62+
"@types/jest": "26.0.20",
6363
"@types/marked": "1.2.1",
64-
"@types/node": "14.14.19",
64+
"@types/node": "14.14.20",
6565
"@types/node-emoji": "1.8.1",
6666
"@types/prismjs": "1.16.2",
6767
"@types/react": "16.14.2",
@@ -70,19 +70,19 @@
7070
"@types/react-router-dom": "5.1.7",
7171
"@types/react-scroll": "1.8.2",
7272
"@types/webpack-env": "1.16.0",
73-
"@typescript-eslint/eslint-plugin": "4.11.1",
74-
"@typescript-eslint/parser": "4.11.1",
73+
"@typescript-eslint/eslint-plugin": "4.12.0",
74+
"@typescript-eslint/parser": "4.12.0",
7575
"babel-loader": "8.2.2",
7676
"enzyme": "3.11.0",
7777
"enzyme-adapter-react-16": "1.15.5",
7878
"eslint": "7.17.0",
7979
"eslint-config-prettier": "7.1.0",
8080
"eslint-plugin-import": "2.22.1",
81-
"eslint-plugin-prettier": "3.3.0",
81+
"eslint-plugin-prettier": "3.3.1",
8282
"eslint-plugin-react": "7.22.0",
8383
"eslint-plugin-react-hooks": "4.2.0",
8484
"faker": "5.1.0",
85-
"husky": "4.3.6",
85+
"husky": "4.3.7",
8686
"jest": "26.6.3",
8787
"jest-enzyme": "7.1.2",
8888
"lint-staged": "10.5.3",
@@ -123,7 +123,7 @@
123123
],
124124
"globals": {
125125
"ts-jest": {
126-
"tsConfig": "<rootDir>config/tsconfig.test.json"
126+
"tsconfig": "<rootDir>config/tsconfig.test.json"
127127
}
128128
}
129129
},

src/containers/__fixtures__/renderHookWithWrapper.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import * as React from 'react'
2-
import { renderHook, RenderHookOptions } from '@testing-library/react-hooks'
2+
import { renderHook } from '@testing-library/react-hooks'
33

44
import TestProvider, { Props } from './TestProvider'
55

66
const renderHookWithWrapper = <P, R>(
77
callback: (props: P) => R,
88
{ paths, search, hash }: Props,
9-
renderHookOptions?: Omit<RenderHookOptions<P>, 'wrapper'>
9+
renderHookOptions?: {
10+
initialProps?: P
11+
wrapper?: React.ComponentType<P>
12+
}
1013
) =>
1114
renderHook(callback, {
1215
wrapper: ({ children }) => (

0 commit comments

Comments
 (0)