jestでwatchが出来なくなった!?
August 29, 2021
目次
jest --watch
を実行すると以下エラー発生
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
watchman がないのが問題らしい…
$ which watchman
watchman not found
watchman インストールする
brew install watchman
ちなみに watchman こちら Watchman A file watching service | Watchman