storybook: [React] `yarn test` fail after getstorybook
Issue details
After getstorybook into create-react-app projects, yarn test throws the following error:
2018-03-14 18:55 node[1827] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-03-14 18:55 node[1827] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-03-14 18:55 node[1827] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:183
throw er; // Unhandled 'error' event
yarn test calls Jest in file watching mode by default, and I found that CI=true yarn test (single run mode) does not throw the error.
Steps to reproduce
create-react-app storybook-sample
cd storybook-sample
yarn add @storybook/cli@3.4.0-rc.2
yarn run getstorybook
yarn test
Please specify which version of Storybook and optionally any affected addons that you’re running
- @storybook/react 3.4.0-rc.2
Affected platforms
- OS: macOS Sierra(10.12.6)
- Node.js: 8.9.3
- yarn: 1.3.2
Screenshots / Screencast / Code Snippets (Optional)
// code here
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (9 by maintainers)
I think it is not related to Storybook. Take a look here - https://stackoverflow.com/questions/41657754/testing-with-jest-failed-with-error-error-watching-file-for-changes-emfile/41661452