question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac OS test watcher failing

See original GitHub issue

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

  1. node -v: 8.10.0 and 9.9.0
  2. npm -v: 5.7.1
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected):

Then, specify:

  1. Operating system: Mac OS High Siera
  2. Browser and version (if relevant):

Steps to Reproduce

https://github.com/mnemanja/failing-tests-repo

  1. Clone repo
  2. Install
  3. Run tests

From the list of 3 (currently found) problematic dependencies removing one makes the tests watcher work properly:

  • node-sass-chokidar: 1.2.2
  • material-ui: 0.20.0
  • enzyme: 3.3.0

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: https://github.com/michaelwayman/node-sass-chokidar/issues/50 https://github.com/airbnb/enzyme/issues/1593 https://github.com/mui-org/material-ui/issues/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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
gaearoncommented, Apr 3, 2018

This problem was solved in more recent Jest versions, which you can use through our 2.x alpha. Instructions: https://github.com/facebook/create-react-app/issues/3815

Unfortunately there’s no fix coming for the 1.x branch of react-scripts. So your best bet is to either start using 2.x alphas (warning: they’re somewhat unstable) or to keep trying different workarounds in the threads you linked to.

2reactions
yashka713commented, Mar 29, 2018

@mnemanja brew install watchman solve my problem, but before I had the same Issue. "test": "react-scripts test --env=jsdom I, also, have this line Maybe, you should remove node_modules yarn.lock package.json.lock(if present) And start yarn to recreate dependency?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check if a Mac disk is about to fail - Apple Support
Check if a Mac disk is about to fail. You can check the health of many disks using Disk Utility. Many disks include...
Read more >
FileSystemWatcher not reporting file moves on Mac OSX ...
One test failing from System.IO.FileSystem.Watcher.Tests on Mac Catalina:
Read more >
How to Use Apple Diagnostics to Check for Mac Hardware ...
1. Press the power button on your Mac and then immediately press and hold down the D key on the keyboard. (To start...
Read more >
7 Commonly Reported macOS Ventura Problems & Ways to ...
If you're experiencing macOS Ventura update issues or other problems, watch this ... failed, try these tips: Tip 1: Check Mac compatibility.
Read more >
How to run a diagnostic test on an Apple Macintosh ... - YouTube
If you found this video useful please like and subscribe to our channel. If you suspect that the hardware in your Apple Macintosh...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found