Skip to content

Instantly share code, notes, and snippets.

@Hiweus
Last active April 21, 2022 13:47
Show Gist options
  • Save Hiweus/40dc4c155289bf84a10215d9e6c04936 to your computer and use it in GitHub Desktop.
Save Hiweus/40dc4c155289bf84a10215d9e6c04936 to your computer and use it in GitHub Desktop.

Problems i faced with JEST

Jest slow on WSL2

I moved my project from Windows Desktop to Linux Home and the tests became faster.

Jest not watching file changes on WSL2

This is related to watchman and inotify, i just moved my project from Windows Desktop to Linux home and watch mode start to work. This ocours because inotify doesn't work correctly ousite a linux file system. Issue Here

Hi @mohemos I moved the files to the Linux file system as advised on this thread and then did the following on WSL: sudo chown -R [username]:[group] [directory_name] example: sudo chown -R cartman:cartman projects Extra info: I'm using Remote WSL on VS code. To check the user VS code uses I opened a remote terminal inside VS code and typed: whoami To check your group: groups This is for Ubuntu But it may vary depending on the Linux dist you're using Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment