-
Notifications
You must be signed in to change notification settings - Fork 250
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
enableFindRelatedTests seems to not work in jest plugin #1566
Comments
Hmm interesting. Does a normal jest run with Stryker uses jests public API to set |
Yes as I said running jest with --findRelatedTests is ok. If i do |
+1 on this, I had to disable this as before all my mutants were surviving as no tests were being run. Putting my stryker config here in case it could help somebody in the future.
|
Is this issue still present? |
Sorry but I don't know if it's still present, I'm not using stryker anymore because of some performance issues. |
Hi, According to some testing I made, this issue is present only on Windows |
Not sure why this issue is closed. It's for sure still an issue. Happens on windows for me too. |
I can also confirm this issue is still present (using stryker 4.3.1 with jest 26.6.3 on Windows). |
The problem is still there! This should be open again |
Indeed still present on windows |
I am also having this issue. Setting enableFindRelatedTests to false fixes it for me. |
@rob893, @aubertaa and @amrsalama I'm pretty sure this is all related to #2122 . Please see workaround(s) defined here: #2122 (comment) Another workaround might be to use --inPlace mode. TL;DR; This is an issue in jest: jestjs/jest#9728 |
Summary
I'm using stryker in a React application with jest.
When using the
enableFindRelatedTests
option of jest plugin and running stryker on all my files, all mutants are surviving as if no tests were ran (but it takes 4h :P).If I add the
-m
option on the command line to target one file it's working for it.Moreover running jest with
--findRelatedTests
is ok.Stryker config
Stryker environment
Test runner environment
jestrc.json
Your Environment
The text was updated successfully, but these errors were encountered: