MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / advanceClock

Function advanceClock

src/exit.test.js:120–124  ·  view source on GitHub ↗
(t, clock)

Source from the content-addressed store, hash-verified

118)
119
120const advanceClock = (t, clock) => {
121 t.deepEqual(process.exit.args, [])
122 clock.tick(EXIT_TIMEOUT)
123 t.deepEqual(process.exit.args, [[EXIT_CODE]])
124}
125
126test.serial('call process.exit() after a timeout', async (t) => {
127 const { clock, stopLogging } = startClockLogging({ exit: true })

Callers 1

exit.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…