-
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
Stryker is not working with Jest 28 #3481
Comments
+1 Don't suppose there's any estimate of when this issue will be looked into? |
@covertbert Feel free to fix it, it is open-source project. |
I think I've found the problem.
In the current release (6.0.1), that line references "jest-runner/circus", which doesn't exist. Either way I think this is the wrong class. It's supposed to reference a test environment, like "test-environment-node", not a test runner. If I change that line to "test-environment-node" in the current release it almost works. The other part is the I figured this out by adding a |
Thanks, everyone! I was pretty stunned by this, seeing as jest 28 has been out for 10 days now. We use dependabot for a reason, why didn't we get a PR from them? Apparently, our dependabot is wrongly configured since February, see #3500 🤦♂️ Anyway, I'll try to look into it asap. There seems to be some changed stuff for @pmcelhaney
|
Thanks! I tested the current release, which appears to be a bit behind main, so that may why I was (apparently) not hitting that override function. If that's not the issue, I wonder if the second part of what I found is implicated: |
Fixed and released in v6.0.2 Thanks for the help everyone🎉 @pmcelhaney |
Awesome, thanks so much! You can see my troubleshooting methodology in that repo I shared. I'd love to know what I missed so that I can improve my mental model of how it all fits together. |
Summary
Stryker is not working with Jest 28. It's trying to apply a mixin to a
JestEnvironment
class which is undefined. It works fine with Jest 27.Please see this repo with the minimum configuration needed to reproduce the problem.
https://github.com/pmcelhaney/StrykerAndJest28
https://replit.com/@pmcelhaney/StrykerAndJest28#README.md
The text was updated successfully, but these errors were encountered: