Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using old version of ts-jest, doesn't support TypeScript 4.x #1159

Closed
Luciden opened this issue Dec 16, 2021 · 3 comments
Closed

Using old version of ts-jest, doesn't support TypeScript 4.x #1159

Luciden opened this issue Dec 16, 2021 · 3 comments

Comments

@Luciden
Copy link

Luciden commented Dec 16, 2021

Receiving the warning:

ts-jest[versions] (WARN) Version 4.5.4 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). Please do not report issues in ts-jest if you are using unsupported versions.

ts-jest is two major versions ahead and supports TypeScript 4.x.

@cexbrayat
Copy link
Member

Hi @Luciden

Thank you for opening an issue, but as you can see, this is not a problem with VTU, but with TS & ts-jest
You need to use a more recent ts-jest version, and a compatible TS version with it. Or if you want to use an incompatible TS version, you'll get the warning.

In any case this is not related to VTU, so I'll close this issue.

@Luciden
Copy link
Author

Luciden commented Dec 16, 2021

Hi, thanks for the quick response. Perhaps my issue is poorly worded. ts-jest already supports Typescript 4+. We don't directly use ts-jest.

The issue is that latest version of vue-test-utils-next is still using version 25.3.1 of ts-test which uses Typescript 3. I'm hoping an upgrade to ts-test 26 or greater will occur.

We need to use Typescript 4 for Vue 3.2 support so we're stuck with the warnings until vue-test-utils-next updates its version of ts-jest.

@cexbrayat
Copy link
Member

I think these are two separate things:

  • you have a warning in your project because you must be using ts-jest somewhere (maybe via the Vue CLI? We would need more context to investigate).
  • ts-jest is used to develop VTU, but this should have no impact whatsoever on your code, as it is a dev dependency. Anyway, we have a PR that updates it (see chore: update to jest 27 #811 ) but we're stuck until an issue in Vue itself is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants