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

Silence jest version warning #958

Closed
qm3ster opened this issue Jan 28, 2019 · 15 comments
Closed

Silence jest version warning #958

qm3ster opened this issue Jan 28, 2019 · 15 comments

Comments

@qm3ster
Copy link

qm3ster commented Jan 28, 2019

I looked at the code, but there is nothing that can stop VersionCheckers.jest.warn() from being called.
Can you please add an environmental variable or something?

@alexewerlof
Copy link

Seems to be hard coded into the source. I haven't encountered any issue running ts-jest 23.10.5 with Jest 24. What's the process for ensuring that ts-jest plays nice with Jest 24?

@qm3ster
Copy link
Author

qm3ster commented Jan 28, 2019

@userpixel not sure if there is a formal process.
All the tests pass if you update dependency version to latest, but who knows 🤷‍♂️

@kulshekhar
Copy link
Owner

there's a PR open to support jest 24 but it's not yet passing. I'll be spending time on it as soon as I can get some. Any help to get the PR working and passing is welcome

@nathanmarks
Copy link

nathanmarks commented Feb 7, 2019

@kulshekhar is it these 2 PRs? #960 #957

@kirillgroshkov
Copy link
Contributor

Please ❤️

@GeeWee
Copy link
Collaborator

GeeWee commented Feb 16, 2019

Closing in favour of #961

@GeeWee GeeWee closed this as completed Feb 16, 2019
@osman144
Copy link

Has this issue been resolved ? I would like to suppress ts-jest version warnings

@OR13
Copy link

OR13 commented Dec 28, 2020

This issue should be reopened or closed with a solution which suppresses warnings.

@ahnpnl
Copy link
Collaborator

ahnpnl commented Dec 28, 2020

https://kulshekhar.github.io/ts-jest/docs/version-checking

@OR13
Copy link

OR13 commented Feb 17, 2021

link is now 404 ^

@OR13
Copy link

OR13 commented Feb 17, 2021

@MattiasMartens
Copy link

I have observed TS_JEST_DISABLE_VER_CHECKER=true not to work with @vue/vue3-jest@27.0.0-alpha.4

@MattiasMartens
Copy link

Update: because the environment flag does not work, I instead downgraded Typescript to the tested version; unfortunately this fatally breaks something in my Vue-CLI stack and has done so for at least one other person (see https://stackoverflow.com/questions/68790790/vue-3-module-node-modules-vue-dist-vue-has-no-exported-member and the fix at https://stackoverflow.com/a/69047437/5063469).
TS-jest appears to work with TS@4 just fine but the inability to turn off the noise is a pain point.

@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 26, 2022

Are you able to reproduce without dependency on vue? We have simple example at https://github.com/kulshekhar/ts-jest/tree/main/examples/ts-only If you can reproduce on that, it will be helpful

@MattiasMartens
Copy link

Hmm, can’t repro it without Vue.
I guess the problem must be with @vue/vue3-jest.
Will take it there. Thanks.

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

10 participants