Skip to content

Commit ef5aa2e

Browse files
authored
chore: test types against a range of supported TypeScript versions (#15634)
1 parent 7998905 commit ef5aa2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: ts integration
4949
run: yarn test-ts --selectProjects ts-integration
5050
- name: type tests
51-
run: yarn test-types --target 5.4,current
51+
run: yarn test-types --target '>=5.4' # For documentation, see: https://tstyche.org/guide/typescript-versions
5252
- name: verify [email protected] compatibility
5353
run: yarn verify-old-ts
5454
- name: run ESLint with type info

docs/UpgradingToJest30.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Upgrading from an older version? You can see the upgrade guide from v28 to v29 [
2020
## Compatibility
2121

2222
- Jest 30 drops support for Node 14, 16, 19, and 21. The minimum supported Node versions are now 18.x. Ensure your environment is using a compatible Node release before upgrading.
23-
- The minimum TypeScript version is now 5.0. Support for TypeScript 4.3 and below has been removed. Update your TypeScript dependency to v5+ if you use TypeScript with Jest.
23+
- The minimum TypeScript version is now 5.4. Update TypeScript, if you are using type definitions of Jest (or any of its packages).
2424
- The `jest-environment-jsdom` package now uses JSDOM v26. This update may introduce behavior changes in the DOM environment. If you encounter differences in DOM behavior or new warnings, refer to the JSDOM release notes for [v21–26](https://github.com/jsdom/jsdom/compare/21.0.0...26.0.0).
2525

2626
## Jest Expect & Matchers

0 commit comments

Comments
 (0)