The #JavaScript testing framework #jest somehow breaks built-in classes so that `x instanceof Error` always gives false. (Same for Array.) This completely breaks error handling when running tests! `Error.isError(x)` seems to work, but #TypeScript doesn't know about it (for NodeJS 24 LTS, even though it has that method)! I'm hack-fixing it with this TypeScript declaration:

