class assert.AssertionError
extends Error
Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class.
Constructors #
#AssertionError(options?: { message?: string | undefined; actual?: unknown | undefined; expected?: unknown | undefined; operator?: string | undefined; stackStartFn?: Function | undefined; }) new
Properties #
#generatedMessage: boolean Indicates if the message was auto-generated (true) or not.