chore(deps): update dependency typescript to v6#180
Conversation
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 652206c5b8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| "ts-jest": "^29.4.6", | ||
| "ts-node": "^10.4.0", | ||
| "typescript": "^5.0.0" | ||
| "typescript": "^6.0.0" |
There was a problem hiding this comment.
Keep TypeScript below 6 until ts-jest supports it
This change upgrades typescript to ^6.0.0 while the adapter still uses ts-jest@^29.4.6; the existing lock metadata shows ts-jest declares typescript peer >=4.3 <6 (for example in prisma/package-lock.json line 6073). When dependencies are re-resolved (e.g., lockfile refresh or installs with stricter peer handling), this produces an unsupported toolchain that can fail install/test pipelines or Jest TypeScript transforms.
Useful? React with 👍 / 👎.
Root causeCI failures on TS v6 are compile errors like: Under TS 5, Jest globals ( Proposed fixPick one of two approaches; option A is smaller and matches the direction Jest itself recommends. Option A — Explicit imports in each test file (preferred) import { describe, test, expect, beforeAll, beforeEach, afterAll } from "@jest/globals";Files to update:
Option B — Pin ambient types in each tsconfig Add to each adapter's {
"compilerOptions": {
"types": ["jest", "node"]
}
}This is one-line-per-adapter but reintroduces implicit globals, which strict codebases generally avoid. RecommendationLand Option A as a prep PR on |
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
652206c to
05f380c
Compare
This PR contains the following updates:
^5.0.0→^6.0.0^5.4.0→^6.0.0Release Notes
microsoft/TypeScript (typescript)
v6.0.3Compare Source
v6.0.2Compare Source
Configuration
📅 Schedule: (UTC)
* 0-3 * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.