MCPcopy
hub / github.com/vitest-dev/vitest / on

Method on

test/cli/fixtures/custom-pool/pool/custom-pool.ts:38–40  ·  view source on GitHub ↗
(event: string, callback: (arg: any) => void)

Source from the content-addressed store, hash-verified

36 }
37
38 on(event: string, callback: (arg: any) => void): void {
39 this.customEvents.on(event, callback)
40 }
41
42 off(event: string, callback: (arg: any) => void): void {
43 this.customEvents.off(event, callback)

Callers 15

cdp.test-d.tsFile · 0.45
cdp.test.tsFile · 0.45
openMethod · 0.45
readMethod · 0.45
createChannelFunction · 0.45
runCliFunction · 0.45
constructorMethod · 0.45
skip.test.tsFile · 0.45
globalTest.tsFile · 0.45

Calls

no outgoing calls

Tested by 3

openMethod · 0.36
readMethod · 0.36
createChannelFunction · 0.36