Skip to content

Commit 4cc565f

Browse files
authored
Update Jest dependencies (#3199)
* Update Jest dependencies * try to update min ts version in the jestp kg * disable `unnecessary-bind` rule in most type tests * disable `unnecessary-bind` in one last pkg * bump min ts version again in jest type tests
1 parent b4da6d3 commit 4cc565f

File tree

18 files changed

+1452
-597
lines changed

18 files changed

+1452
-597
lines changed

.yarn/patches/jest-snapshot-npm-27.4.5-6ace6bf68e.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@
182182
"@manypkg/cli": "^0.19.1",
183183
"@preconstruct/cli": "^2.6.2",
184184
"@testing-library/react": "13.0.0-alpha.5",
185-
"@types/jest": "^27.0.3",
185+
"@types/jest": "^29.5.12",
186186
"@types/node": "^12.20.37",
187187
"@types/react": "^18.0.9",
188188
"@typescript-eslint/eslint-plugin": "^7.13.0",
189189
"@typescript-eslint/parser": "^7.13.0",
190190
"babel-check-duplicated-nodes": "^1.0.0",
191191
"babel-eslint": "^10.1.0",
192-
"babel-jest": "^27.4.5",
192+
"babel-jest": "^29.7.0",
193193
"babel-plugin-codegen": "^4.1.5",
194194
"babel-plugin-jsx-pragmatic": "^1.0.2",
195195
"benchmark": "^2.1.4",
@@ -210,12 +210,12 @@
210210
"eslint-plugin-react-hooks": "^4.6.2",
211211
"html-tag-names": "^1.1.2",
212212
"husky": "^3.0.9",
213-
"jest": "^27.4.5",
214-
"jest-environment-jsdom": "^27.4.4",
213+
"jest": "^29.7.0",
214+
"jest-environment-jsdom": "^29.7.0",
215215
"jest-in-case": "^1.0.2",
216216
"jest-junit": "^13.0.0",
217217
"jest-serializer-html": "^7.1.0",
218-
"jest-watch-typeahead": "^1.0.0",
218+
"jest-watch-typeahead": "^2.2.2",
219219
"lint-staged": "^7.2.0",
220220
"module-alias": "^2.0.1",
221221
"multipipe": "^1.0.2",
@@ -239,8 +239,5 @@
239239
"unified": "^6.1.6",
240240
"webpack-bundle-analyzer": "3.3.2"
241241
},
242-
"packageManager": "[email protected]",
243-
"resolutions": {
244-
"[email protected]": "patch:jest-snapshot@npm:27.4.5#.yarn/patches/jest-snapshot-npm-27.4.5-6ace6bf68e.patch"
245-
}
242+
"packageManager": "[email protected]"
246243
}

packages/cache/types/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "@definitelytyped/dtslint/dtslint.json",
33
"rules": {
44
"array-type": [true, "generic"],
5-
"semicolon": false
5+
"semicolon": false,
6+
"unnecessary-bind": false
67
}
78
}

packages/css/types/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"check-typecast",
1919
"check-type-operator",
2020
"check-preblock"
21-
]
21+
],
22+
"unnecessary-bind": false
2223
}
2324
}

packages/hash/types/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"check-preblock"
1818
],
1919

20-
"no-unnecessary-generics": false
20+
"no-unnecessary-generics": false,
21+
"unnecessary-bind": false
2122
}
2223
}

packages/is-prop-valid/types/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
],
1919

2020
"no-unnecessary-generics": false,
21-
"no-default-import": false
21+
"no-default-import": false,
22+
"unnecessary-bind": false
2223
}
2324
}

packages/jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@definitelytyped/dtslint": "0.0.112",
6363
"@emotion/css": "11.11.2",
6464
"@emotion/react": "11.11.4",
65-
"@types/jest": "^27.0.3",
65+
"@types/jest": "^29.5.12",
6666
"enzyme-to-json": "^3.6.1",
6767
"pretty-format": "^22.4.3",
6868
"react": "16.14.0",

packages/jest/types/enzyme.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TypeScript Version: 2.9
1+
// TypeScript Version: 4.3
22

33
/// <reference types="jest" />
44

packages/jest/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
2-
// TypeScript Version: 2.9
2+
// TypeScript Version: 4.3
33

44
/// <reference types="jest" />
55

packages/jest/types/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"array-type": [true, "generic"],
55
"semicolon": false,
66
"file-name-casing": false,
7-
"strict-export-declare-modifiers": false
7+
"strict-export-declare-modifiers": false,
8+
"unnecessary-bind": false
89
}
910
}

0 commit comments

Comments
 (0)