class assert.AssertionError
extends Error
Usage
import assert from "node:assert"; const { AssertionError } = assert;
Indicates the failure of an assertion. All errors thrown by the node:assertmodule will be instances of the AssertionError class.