-
-
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
React-scripts test command not working #11043
Comments
Same Problem here |
Running into this as well. |
facing the same issue. |
I've fixed it by installing the plugin jest-watch-typeahead |
Work for me!!! Thanks |
Same here. Could be yarn issue? |
Thank you! |
ReproI've also run into this same situation with a CRA currently, non-ejected, with react-scripts
and then getting the same error:
Jest ConfigSince this is through CRA, the only jest config options in my
Running Application StructureI suspect that this might be related to the structure of this application, as I've recently changed it. Here's a simplified diagram of the (full-stack) project: Root (express server)
Client Application (made with latest CRA)
Anyway, apologies in advance if I'm missing something simple (tooling/build stuff for full-stack apps is a bit new for me, and this project predates my work on it), but I mostly just wanted to document another case of this. If I find a work-around, fix, etc., I'll be sure to return and share for others. |
I have had the same issue and one important thing to notice is that the newest released version of
Make sure to install the version compatible with Jest 26 e non native ESM modules.
|
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. |
same problem here |
Hello. |
I noticed that I didn't have
That's a workaround of course rather than solving the problem. |
any update with this issue? |
Encountered same issue |
I didn't have the issue when moving to 4.0.3, but saw the issue when going to 5.0.0 Just found a linked issue that relates to my issue: #11792 |
The issue has to do with your node version. Update your node to the latest stable version to fix it. |
I had the same error and I found a work around.
then there'll be an error for the jest version, I changed it to version 27.0.0, same the ts-jest. |
Had the same issue after updating It's not necessary to add Running |
Describe the bug
react-scripts test
command stopped working after update to ^4.0.3 from ^3.0.0.It shows this error on terminal:
Nothing has changed on the code. Only react-scripts package. Tests were working fine before the update.
The project is not ejected and it is not intended to be.
Did you try recovering your dependencies?
Yes, I tried.
yarn version: 1.22.10
Which terms did you search for in User Guide?
I've search for 'react-scripts test' and 'watchPlugins' and all I found is that I need to eject the project. I don't understand why. It was never like that. So I think that is not the solution to the problem.
Steps to reproduce
yarn
yarn test
Expected behavior
I expect tests run fine. Like before updating to ^4.0.3.
Actual behavior
react-scripts test
command stops working after update react-scripts library to ^4.0.3 from ^3.0.0.It shows this error on terminal:
Thank you :D
The text was updated successfully, but these errors were encountered: