elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / test/setup / MockedProcessExit
Represents a call to process.exit that has been mocked by withMockedExit
.
Error
new MockedProcessExit(
code
?):MockedProcessExit
Represents a call to process.exit that has been mocked by withMockedExit
.
• code?: number
Error.constructor
optional
cause:unknown
Error.cause
node_modules/typescript/lib/lib.es2022.error.d.ts:24
optional
readonly
code:number
message:
string
Error.message
node_modules/typescript/lib/lib.es5.d.ts:1077
name:
string
Error.name
node_modules/typescript/lib/lib.es5.d.ts:1076
optional
stack:string
Error.stack
node_modules/typescript/lib/lib.es5.d.ts:1078
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
• err: Error
• stackTraces: CallSite
[]
any
Error.prepareStackTrace
node_modules/@types/node/globals.d.ts:28
static
stackTraceLimit:number
Error.stackTraceLimit
node_modules/@types/node/globals.d.ts:30
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
• targetObject: object
• constructorOpt?: Function
void
Error.captureStackTrace
node_modules/@types/node/globals.d.ts:21