-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Newly created react app with typescript template crashing when running tests with coverage flag enabled #9593
Comments
Could it be related to #9515 ? |
I have a similar issue, but without typescript template. This is probably more related to #9322 |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This is stale as there is no official answer but this is still happening. |
Same for me |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
I have detected that with react-scripts 4 this issue is solved, so if someone is still facing this I suggest to update. At least creating a project from scratch no longer fails when running tests with coverage flag. |
Describe the bug
Running on a greenfield project created with create-react-app and typescript template the tests with the coverage flag doesn't work. Running the test without coverage flag works fine.
Environment
Steps to reproduce
"test:coverage": "react-scripts test -- --coverage --runInBand --watchAll=false",
yarn test:coverage
Same can be done without yarn. I am adding yarn as it is how I created it so it is consistent with the info above.
Expected behavior
The tests are run properly when the coverage flag is enabled
Actual behavior
It crashes like if it wasn't aware that it has to transpile typescript to run the tests.
The text was updated successfully, but these errors were encountered: