-
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
Clarity on projectType=react #1435
Comments
Thanks for opening this issue! Do you mean the setting in the Jest runner as described in its README: Or do you mean the 'react' option in the preset configurations? (which also sets the jest-runner to 'react'): |
Hey @simondel thanks for replying! That is the correct menu I selected though I think it might be worth keeping them both aligned. I know CRA is ubiquitous but I worry for those who have never used it and wouldn't recognize the error :) |
Well, the preset is actually for |
We could also simply improve the documentation in both places. Instead of another deprecation 😰 |
Good point @nicojs I was worried about the major semver change, I think even parenthesis with (create-react-app) would suffice. For the JS configuration files it's a little different but I think a JS comment would suffice too. |
it works for my non-CRA application but I had to put
and remove |
Ok, sounds good. We're welcoming PR's. Please implement it without breaking changes (log a deprecation warning accordingly). |
As reported (stryker-mutator#1435) the react preset is only applicable to a react project set up by create-react-app. In addition, the error (unable to locate package react-scripts) isn't that useful either. Therefore, I propose we change the projectType to react-create-app as it resembles the applicability of this preset.
Is it still a valid issue? There were quite a lot of changes and also some deprecations and removals (especially in stryker 4) |
LGTM! Thanks @MrFix93 |
Summary
Hi! I'm getting started with this project and I wanted to share some confusion I had around
projectType=react
.I think it's worth clarifying that
react
here is create-react-app and not general purpose React. During the installation I selected this thinking it came with specific Babel transforms or mutants. Then I ran into an error about missingreact-scripts/
which I was able to recognize. There's not much in the way of issues for this particular error however and that lead me to create this issue.Would you consider expanding the terminology (particularly for installation) to clarify that it's create-react-app specifically?
The text was updated successfully, but these errors were encountered: