Assert.prototype.throws(blockFn: unknown,expectedInput?: unknown,assertionMessage?: string): void
Asserts that blockFn throws an exception. Optionally validates the thrown
error against a string (message substring), RegExp (message pattern),
or constructor (instanceof check). For async functions use Assert.prototype.rejects.