Skip to content

Commit

Permalink
test: add process.exit
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Nov 14, 2024
1 parent eccba80 commit 5d21aa7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions e2e/kill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ import { $ } from 'bun';

console.log('🎉 Killing all bun processes...');

if (process.platform === 'win32') {
await $`taskkill /IM bun.exe /F`.quiet();
} else {
await $`pkill -f bun`.quiet();
try {
if (process.platform === 'win32') {
await $`taskkill /IM bun.exe /F`.quiet();
} else {
await $`pkill -f bun`.quiet();
}
} finally {
process.exit(0);
}

0 comments on commit 5d21aa7

Please sign in to comment.