test-runner icon indicating copy to clipboard operation
test-runner copied to clipboard

[Feature Request] Compatibility with Jest 29

Open cprecioso opened this issue 2 years ago • 2 comments

Jest v29 was recently released (blog post, migration guide, changelog). The test runner should have support for it. According to the blog post, it should be a straight-forward upgrade.

cprecioso avatar Aug 29 '22 08:08 cprecioso

Hey @cprecioso thanks for opening this issue.

Unless you really need something from Jest 29 in the context of your tests running via the test runner, you should not need to worry about it anymore. The test runner used to require you to install Jest as a peer dependency, thus the need to have compatible versions of Jest in your project, but now it's contained and it will come with Jest 28 internally since version 0.7.0, so there's no such thing as compatibility issues anymore.

Of course, we can always upgrade the internal version of the test runner to Jest 29, though I'd wait a little given it's just been released.

yannbf avatar Aug 29 '22 09:08 yannbf

Understood, thanks for the explanation!

cprecioso avatar Aug 29 '22 09:08 cprecioso

There's a workaround for jest's memory leak issues in v29 - https://github.com/facebook/jest/issues/11956

i'm currently unable to use it with storybook/test-runner, so i'm currently getting memory errors on CI 😬

callumacrae avatar Apr 03 '23 12:04 callumacrae

This is really a problem, considering Angular 16 only supports jest-preset-angular 13.1.1, which requires jest 29. I now cannot use the test runner with Angular 16 without the following error: ts-jest[versions] (WARN) Version 28.1.3 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=29.0.0 <30.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.

Please prioritize this very necessary upgrade.

skaindl avatar Oct 27 '23 10:10 skaindl

Hey everyone! I'm happy to say that the test-runner now uses Jest 29, please try its beta version here: v0.14.0-next.2

It will be promoted to latest once it has enough feedback regarding its stability. Thank you! <3

yannbf avatar Oct 30 '23 10:10 yannbf