import { globalErr } from "https://dotland.deno.dev/x/chai@v5.1.2/test/bootstrap/index.js";
Validate that the given function throws an error.
By default, also validate that the thrown error's stack trace doesn't contain
Chai implementation frames. Stack trace validation can be disabled by
providing a truthy skipStackTest
argument.
Optionally validate some additional properties of the error:
If val is a string, validate val equals the error's .message If val is a regex, validate val matches the error's .message If val is an object, validate val's props are included in the error object