Skip to content

Instantly share code, notes, and snippets.

@cncolder
Last active April 16, 2021 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cncolder/97b0e048ef1b756f25df814faacfd2e7 to your computer and use it in GitHub Desktop.
Save cncolder/97b0e048ef1b756f25df814faacfd2e7 to your computer and use it in GitHub Desktop.
VSCode Jest run it extension monorepo bin path
// VSCode Settings - Jest run it - Jest Path
node -e '[_,f,...a]=process.argv;d=path.dirname(f).replace(/\\/g,"");j=require.resolve("jest",{paths:[d]});b=path.resolve(j,"../../bin/jest.js");child_process.spawnSync(b,[f,...a],{cwd:d,stdio:"inherit"})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment