Skip to content

Instantly share code, notes, and snippets.

@esamattis
Last active July 23, 2025 11:40
Show Gist options
  • Select an option

  • Save esamattis/600d6964f3e6ab6e8e7da9a05bfe6574 to your computer and use it in GitHub Desktop.

Select an option

Save esamattis/600d6964f3e6ab6e8e7da9a05bfe6574 to your computer and use it in GitHub Desktop.
Debug jest tests in vscode with pnpm
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"runtimeExecutable": "sh", // <-- The important bit!
"program": "node_modules/.bin/jest",
"args": ["${relativeFile}"],
"console": "integratedTerminal",
"internalConsoleOptions": "openOnFirstSessionStart"
}
]
}
@pabletecodes
Copy link

Adding "runtimeExecutable": "sh", worked for me. Thank you! 🙇

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