Skip to content

Commit d14d32b

Browse files
committed
Force terminate tests on timeout
1 parent 77c820e commit d14d32b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test.js

+1
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ function exit() {
8383
: console.error('⚠️', 'Not good')
8484

8585
!process.exitCode && (!success || only || ignored) && (process.exitCode = 1)
86+
setTimeout(() => { throw new Error('failed to gracefully exit') }, 5000).unref()
8687
}
8788

0 commit comments

Comments
 (0)