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

Function reject

packages/vitest/src/node/pools/pool.ts:287–287  ·  view source on GitHub ↗
(_error: unknown)

Source from the content-addressed store, hash-verified

285function withResolvers() {
286 let resolve = () => {}
287 let reject = (_error: unknown) => {}
288
289 const promise = new Promise<void>((res, rej) => {
290 resolve = res

Callers 8

withResolversFunction · 0.70
onStartMethod · 0.70
withTimeoutMethod · 0.70
spawnMethod · 0.50
onErrorMethod · 0.50
handleTimeoutFunction · 0.50
onRejectFunction · 0.50
executeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected