-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Mac OS test watcher failing #4215
Comments
This is coming from react-scripts test.js
Where the --watch argument is being added to jest.
But as of yet I am not sure why the jest watch flag in combination with those packages would break the jest tests.. |
@michaelwayman The point is to have the tests run in the watch mode, which currently doesn't happen. |
What errors are being printed? Could it be this? nodejs/node#15683 |
That's the error and the watchman didn't fix it.
|
@mnemanja |
This problem was solved in more recent Jest versions, which you can use through our 2.x alpha. Unfortunately there's no fix coming for the 1.x branch of |
Thanks, |
We need to use `react-scripts` 2+ to be able to use jest + enzyme, per facebook/create-react-app#4215 (comment) They won't be fixing it for `react-scripts` 1.x branch. Signed-off-by: Mark Matyas <[email protected]>
We need to use `react-scripts` 2+ to be able to use jest + enzyme, per facebook/create-react-app#4215 (comment) They won't be fixing it for `react-scripts` 1.x branch. Signed-off-by: Mark Matyas <[email protected]>
Is this a bug report?
I believe this is a bug. I'm just not sure who's?
Did you try recovering your dependencies?
I have tried this by using only npm.
Which terms did you search for in User Guide?
Error watching file for changes: EMFILE
Environment
node -v
: 8.10.0 and 9.9.0npm -v
: 5.7.1yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected):Then, specify:
Steps to Reproduce
https://github.com/mnemanja/failing-tests-repo
From the list of 3 (currently found) problematic dependencies removing one makes the tests watcher work properly:
Expected Behavior
Tests should be successfully executed and the watch mode should be active.
Actual Behavior
The watch mode exists and error messages are shown.
Reproducible Demo
https://github.com/mnemanja/failing-tests-repo
I have also created similar reports on all involved repos:
michaelwayman/node-sass-chokidar#50
enzymejs/enzyme#1593
mui/material-ui#10801
I have tried installing the Watchman via brew, as per many suggestions found in this repo and several others, but after the installation, nothing has changed.
The text was updated successfully, but these errors were encountered: