Skip to content

Commit 1616238

Browse files
committed
update packages and adapt configs
1 parent 4c7d356 commit 1616238

3 files changed

Lines changed: 20 additions & 17 deletions

File tree

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"prettier",
1515
"plugin:prettier/recommended",
1616
"plugin:@typescript-eslint/recommended",
17-
"plugin:import/typescript"
17+
"plugin:import/typescript",
18+
"plugin:jest/recommended"
1819
],
1920
"parserOptions": {
2021
"sourceType": "module",

jest.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"testEnvironment": "jsdom",
23
"transform": {
34
"^.+\\.(t|j)sx?$": "ts-jest"
45
},

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,27 @@
4646
"access": "public"
4747
},
4848
"devDependencies": {
49-
"@testing-library/jest-dom": "^5.11.10",
50-
"@testing-library/react": "^11.2.6",
51-
"@testing-library/react-hooks": "^5.1.1",
49+
"@testing-library/jest-dom": "^5.16.4",
50+
"@testing-library/react": "^12.0.0",
51+
"@testing-library/react-hooks": "^8.0.1",
5252
"@types/css-mediaquery": "^0.1.1",
53-
"@types/jest": "^26.0.22",
54-
"@types/react": "^17.0.3",
55-
"@typescript-eslint/eslint-plugin": "^4.21.0",
56-
"@typescript-eslint/parser": "^4.21.0",
53+
"@types/jest": "^28.1.3",
54+
"@types/react": "^17.0.0",
55+
"@typescript-eslint/eslint-plugin": "^5.30.0",
56+
"@typescript-eslint/parser": "^5.30.0",
5757
"css-mediaquery": "^0.1.2",
58-
"eslint": "^7.23.0",
59-
"eslint-config-prettier": "^8.1.0",
60-
"eslint-plugin-import": "^2.22.1",
61-
"eslint-plugin-jest": "^24.3.4",
62-
"eslint-plugin-prettier": "^3.3.1",
63-
"jest": "^26.6.3",
64-
"prettier": "^2.2.1",
58+
"eslint": "^8.18.0",
59+
"eslint-config-prettier": "^8.5.0",
60+
"eslint-plugin-import": "^2.26.0",
61+
"eslint-plugin-jest": "^26.5.3",
62+
"eslint-plugin-prettier": "^4.1.0",
63+
"jest": "^28.1.1",
64+
"jest-environment-jsdom": "^28.1.1",
65+
"prettier": "^2.7.1",
6566
"react": "^17.0.2",
6667
"react-dom": "^17.0.2",
67-
"ts-jest": "^26.5.4",
68-
"typescript": "^4.2.4"
68+
"ts-jest": "^28.0.5",
69+
"typescript": "^4.7.4"
6970
},
7071
"peerDependencies": {
7172
"react": "^16.0.0 || ^17.0.0"

0 commit comments

Comments
 (0)