Skip to content

Commit

Permalink
js: force exit ndoe
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 5, 2024
1 parent 7b2d4a8 commit 0414772
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions iroh-js/__test__/_force-exit.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import process from 'node:process';
import { registerCompletionHandler } from 'ava';

registerCompletionHandler(() => {
process.exit();
});
5 changes: 4 additions & 1 deletion iroh-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
"ava": "^6.0.1"
},
"ava": {
"timeout": "5m"
"timeout": "5m",
"require": [
"./__test__/_force-exit.mjs"
]
},
"scripts": {
"artifacts": "napi artifacts",
Expand Down

0 comments on commit 0414772

Please sign in to comment.