Skip to content

Instantly share code, notes, and snippets.

@therightstuff
Created September 29, 2022 05:46
Show Gist options
  • Save therightstuff/47626f7d631affcc69ec437f2a73a2ca to your computer and use it in GitHub Desktop.
Save therightstuff/47626f7d631affcc69ec437f2a73a2ca to your computer and use it in GitHub Desktop.
VSCode Jest extension settings for ZSH

VSCode Jest extension settings

These are the settings to enable the VSCode Jest extension to identify, run and debug tests using nvm and Oh My Zsh.

CAUTION: nvm must be available to the root user for these settings to work, see this script.

NOTE:

  • workspace-settings.json belong in .vscode/settings.json
  • extension-settings.json must be located via the VSCode settings interface
{
"jest.jestCommandLine": "node_modules/.bin/jest",
"jest.shell": "/bin/zsh"
}
{
"jest.jestCommandLine": "node_modules/.bin/jest --detectOpenHandles"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment