Last active
April 16, 2021 12:05
-
-
Save cncolder/97b0e048ef1b756f25df814faacfd2e7 to your computer and use it in GitHub Desktop.
VSCode Jest run it extension monorepo bin path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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