If you are trying to run Jest on your Linux machine and getting a weird error about Watchman, you can fix it increasing the number of files that Watchman will be able to… watch!
All you need to do is:
- Open the file
sudo vim /etc/sysctl.conf
- Add the following lines to it:123# Config to run Jestfs.inotify.max_user_watches = 10485760fs.file-max = 10485760
And that’s it! :D