jest.mock("../util/errors.ts", () => ({ catchErrors: jest.fn() })); import * as React from "react"; import { mount } from "enzyme"; import { ErrorBoundary } from "../error_boundary"; import { catchErrors } from "../util"; class Kaboom extends React.Component<{}, {}> { TRUE = (1 + 1) === 2; render() { if (this.TRUE) { throw new Error("ALWAYS"); } else { return
; } } } describe("