[Feature]: Typescript 5 support
envgap__kulshekhar__ts-jest-4048
01 / FAILURE SIGNATURE
As reported upstream
TypeError: ts.getMutableClone is not a function
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
ca386468bbcd3c17da3c9d43a9b69bb926150ec4- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
kulshekhar/ts-jest #4048 · read the original issue
### 🚀 Feature Proposal
It would be great if ts-jest to supports recently released [Typescript 5.0](https://github.com/Microsoft/TypeScript/releases/v5.0.2)
Currently it warns that it doesn't support even Typescript 4.0, so I'm not reporting this as a bug, but rather a feature request:
```
ts-jest[versions] (WARN) Version 5.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0).
```
and than my tests fail with
```
● Test suite failed to run
TypeError: ts.getMutableClone is not a function
at visitor (node_modules/@vue/cli-plugin-unit-jest/node_modules/ts-jest/dist/transformers/hoist-jest.js:63:34)
at Object.visitNode (node_modules/typescript/lib/typescript.js:85353:21)
at transformSourceFileOrBundle (node_modules/typescript/lib/typescript.js:87236:51)
at transformation (node_modules/typescript/lib/typescript.js:108858:16)
at transformRoot (node_modules/typescript/lib/typescript.js:108881:73)
at transformNodes (node_modules/typescript/lib/typescript.js:108866:72)
at emitJsFileOrBundle (node_modules/typescript/lib/typescript.js:109453:[26](https://git.kryptops.io/telltale/frontend/runs/104026?check_suite_focus=true#step:6:27))
at emitSourceFileOrBundle (node_modules/typescript/lib/typescript.js:109388:7)
at forEachEmittedFile (node_modules/typescript/lib/typescript.js:109142:26)
```
### Motivation
It would allow allow people to use latest typescript features with ts-jest.
### Example
_No response_04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]