-
Notifications
You must be signed in to change notification settings - Fork 1
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
Need help with new recipe #21
Comments
Hiya Nico! Thanks for popping over 🙂 There's some good info in CONTRIBUTING.md
|
Thanks! I've read through the CONTRIBUTING.md, but it assumes a lot of knowledge about codemod that I don't have. I would love some pointers of what codemod is, how a recipe is called and how to run it locally.
Finally, I would like to introduce StrykerJS. Code coverage is fast and handy, but if you really care about test quality, Stryker is your best friend (although I'm, of course, biased as I'm the author). If you agree with all this than I suggest the following steps:
|
https://docs.codemod.com/introduction Some people from codemod are also on the userland-migrations team.
Actually, I think that's very easy to facilitate:
Sure, that was just an example ;)
Sure :) I used
Perhaps, perhaps not.
You can, but the typescript compiler is significantly slower. For small software, that doesn't matter too much.
We don't currently plan to support both codemod and npm registries, but we wouldn't stop (or try to hinder) contributors facilitating the npm option themselves. If we do in future, we would probably use
If I understand correctly what Stryker does, it's redundant to what we already have, and unfortunately, there can't be divergent testing (this would be too difficult to support in CI, plus if there is a problem that a collaborator needs to fix, we can't be learning a dozen different test runners just to fix a problem). That is why I offered to help / handle migrating your tests if you need that (offer still stands 🙂). If there's a feature in Stryker that you need that doesn't exist in node's test runner, I'm also on the node test runner team, so perhaps I can get it added.
1 & 2 sound fine. 3 I think we do not want at this time. @nodejs/userland-migrations thoughts? 4 It may be easier for you to achieve your npm stuff by creating a fork of userland-migrations were you add that on the side (I think in your fork you would probably want to replace 5 I think this is redundant to the tooling already in place. If not, willing to consider :) |
Ok, I think I understand. I will go ahead with point 1 and report back here when that is done.
I've introduced Stryker in This is the PR that introduced it: nicojs/type-annotationify#12 To be very clear, StrykerJS is not a test runner. It is a way to verify that your tests catch actual bugs. The report it produces marks potential bugs that your tests are not seeing. It subsumes code coverage and is superior to it. I want to understand where you got the impression that Stryker is redundant to what you already have. There may be something wrong with our messaging. |
Ahh, well that's a horse of a different colour then! Let me look more into it 🙂 I got the impression from their homepage, which said it was mutation testing (which seemed redundant to what a snapshot can do). |
Hi 👋
@JakobJingleheimer invited me to contribute to the 'type-annotationify' codemod recipe. I'm looking into how to do that. I have zero experience with codemod. I heard of it for the first time today 😅.
I have some questions:
Thanks a lot for any help.
The text was updated successfully, but these errors were encountered: