Skip to content

Commit ce219c3

Browse files
authored
chore: jest upgrade (#303)
1 parent 807a36b commit ce219c3

File tree

16 files changed

+1947
-826
lines changed

16 files changed

+1947
-826
lines changed

.changeset/two-berries-carry.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
pnpm test

.lintstagedrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"*.(js|ts|tsx|jsx)": ["prettier --write", "eslint --cache --fix", "pnpm test -- --bail --findRelatedTests"]
2+
"*.(js|ts|tsx|jsx)": ["prettier --write", "eslint --cache --fix"]
33
}

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,21 @@
143143
"@storybook/manager-webpack5": "^6.5.16",
144144
"@storybook/react": "^6.5.16",
145145
"@storybook/testing-library": "^0.0.13",
146-
"@swc/core": "^1.3.35",
146+
"@swc/core": "^1.3.36",
147147
"@swc/jest": "^0.2.24",
148+
"@testing-library/dom": "^9.0.0",
148149
"@testing-library/jest-dom": "^5.16.1",
149150
"@testing-library/react": "^12.1.2",
150151
"@testing-library/react-hooks": "^8.0.0",
151152
"@testing-library/user-event": "14.2.0",
152-
"@types/node": "^18.13.0",
153+
"@types/jest": "^29.4.0",
154+
"@types/node": "^18.14.0",
153155
"@types/react": "^17.0.38",
154156
"@types/react-dom": "^17.0.11",
155157
"@types/react-is": "^17.0.3",
156158
"@types/react-test-renderer": "^17.0.1",
157159
"@types/react-transition-group": "^4.4.2",
160+
"@types/testing-library__jest-dom": "^5.14.5",
158161
"@typescript-eslint/eslint-plugin": "^5.8.1",
159162
"@typescript-eslint/parser": "^5.8.1",
160163
"bytes": "^3.1.0",
@@ -171,7 +174,8 @@
171174
"eslint-plugin-react-hooks": "^4.3.0",
172175
"eslint-plugin-storybook": "^0.6.10",
173176
"husky": ">=6",
174-
"jest": "^27.5.1",
177+
"jest": "^29.4.3",
178+
"jest-environment-jsdom": "^29.4.3",
175179
"jest-styled-components": "^7.0.8",
176180
"lint-staged": ">=10",
177181
"markdown-table": "^3.0.3",

0 commit comments

Comments
 (0)