Commit 019dec7
committed
fix test runner: properly catch unhandled exceptions/rejections & exit process
previously, if some error occurred, would just continue running, unless:
a) a node arg `--unhandled-rejections=strict` was specified, or
b) node version was >= 15 (but would get stuck, instead of exiting properly)
for A, see:
https://nodejs.org/api/cli.html#--unhandled-rejectionsmode
now, always exits properly.1 parent 6bc7253 commit 019dec7
1 file changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| |||
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
31 | 46 | | |
0 commit comments