Assert.prototype.rejects(promise: unknown,expectedInput?: unknown,assertionMessage?: string): Promise<void>
Asserts that a promise rejects. Optionally validates the rejection reason
against a string (message substring), RegExp (message pattern),
or constructor (instanceof check). For synchronous throws use Assert.prototype.throws.