Skip to content
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

yarn test issue #26

Open
RaulTsc opened this issue Jan 24, 2017 · 2 comments
Open

yarn test issue #26

RaulTsc opened this issue Jan 24, 2017 · 2 comments

Comments

@RaulTsc
Copy link
Collaborator

RaulTsc commented Jan 24, 2017

Running yarn test gives

Determining test suites to run...2017-01-24 18:57 node[11695] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2
d_register_rpc() => (null) (-22)
2017-01-24 18:57 node[11695] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2017-01-24 18:57 node[11695] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1022:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1282:11

This was fixed by doing

brew link automake
brew install --HEAD watchman

facebook/react-native#910

Other people might have this problem aswell. If we don't plan on fixing it atm we should at least include the fix in the README.

@liviuignat
Copy link
Owner

I don't have this problem, but I installed yarn with npm install yarn -g and I think this is not the recommended way anymore.

@RaulTsc
Copy link
Collaborator Author

RaulTsc commented Jan 24, 2017

I also installed it globally, I don't think that's the problem though. The reporter in the RN issue is using npm. I think watchman might be a dependency of jest and it gets screwed up somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants