Identical to the throws function from the node:assert module, but bound to the test context.
throws
node:assert