node/kill-jest-locks
Kills active jest lock files under Windows. Can help in case that jest refuses to run because it can't access active locks
Usage
npx @lukasbach/scripts node/kill-jest-locks
You can call the script directly if you have installed it globally:
npm i -g @lukasbach/scripts
ldo node/kill-jest-locks
Options
-v
,--verbose
: Verbose logging
You can also omit options, and will be asked for them interactively.
Add --yes
to skip all confirmations.
Script source
/** Kills active jest lock files under Windows. Can help in case that jest refuses to run because it can't access active locks */
await fs.remove(path.join(os.tmpdir(), "jest"));