-
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
Support for pnpm as a package manager #3221
Comments
Hi @VVKot 🙋♀️ I haven't used pnpm myself, but on the website I read this:
I think this is messing up the plugin discovery. Could you try to override plugins in your configuration as a workaround? Just list all the plugins to be loaded. For example: {
"plugins": ["@stryker-mutator/typescript-checker", "@stryker-mutator/jest-runner"]
} If that doesn't work, please report the error message you're receiving here. |
I had a couple of minutes to spare and tested it out. It seems to work fine when specifying I don't see an easy way to make StrykerJS automatically resolve the plugins, seeing as the pnpm file structure makes it harder to resolve them. Maybe documenting this solution would already be enough. Do you agree @VVKot ? |
Thanks for a quick response and for provided workaround @nicojs ! Yes, that indeed works for me - time to run tests is now down to 15 minutes. 🎉 I think that's a perfectly fine solution for now. |
We're happy to accept PR's to improve the docs, maybe add a mention in our troubleshooting guide as well. Furthermore, we could add |
Is your feature request related to a problem? Please describe.
Sadly stryker does not fully work with https://pnpm.io/
Describe the solution you'd like
All features are appropriately supported.
Describe alternatives you've considered
Sadly the only alternative would be switching package managers, which is not an option in my case.
Additional context
Specifically, https://stryker-mutator.io/docs/stryker-js/typescript-checker does not work with pnpm - stryker is not able to find/load it when installed with pnpm. Without it I likely won't be able to use stryker - lots of mutants are not type safe, and I'd like to filter them out before running tests. If that's not done, mutation testing would literally take hours.
The text was updated successfully, but these errors were encountered: