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

Function emitEvent

src/helpers/cli.test.js:7–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { emit } from './events.test.js'
6
7const emitEvent = async () => {
8 const stopLogging = logProcessErrors({
9 onError: (error) => {
10 // eslint-disable-next-line no-restricted-globals, no-console
11 console.log(error.message)
12 },
13 exit: false,
14 })
15
16 try {
17 await emit(argv[2])
18 } finally {
19 stopLogging()
20 }
21}
22
23await emitEvent()

Callers 1

cli.test.jsFile · 0.85

Calls 2

emitFunction · 0.90
logProcessErrorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…