Commit 8306969
committed
test(coverage): cover setupTelemetryExitHandlers duplicate-call skip
Adds a test for the early-return branch when exitHandlersRegistered
is already true (lines 118-119). Calls setupTelemetryExitHandlers
twice and asserts that the second call does not register additional
process.on handlers.
integration.mts: 88.04% → 90.21% statements (87.61% → 89.13% branch).1 parent 8009259 commit 8306969
1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
149 | 161 | | |
150 | 162 | | |
151 | 163 | | |
| |||
0 commit comments