hunk.code_window: 			"requires": {
   				"ms": "^2.0.0"
   			}
   		},
   		"hyper-dom-expressions": {
   			"version": "0.23.3",
   			"resolved": "https://registry.npmjs.org/hyper-dom-expressions/-/hyper-dom-expressions-0.23.3.tgz",
   			"integrity": "sha512-sgNN+TzN4XwrCKjKdv+LupFMC5q2ciA/h33HJKdb9RjLJ+gMSrWLa5hl0DWFkDb5d52eSHaAMTyL/tH69DRXuQ==",
   			"dev": true
   		},
   		"iconv-lite": {
   			"version": "0.4.24",
  
hunk.labels: keep keep keep keep keep replace replace replace keep keep keep keep
hunk.after_edit: 			"version": "0.23.4",
   			"resolved": "https://registry.npmjs.org/hyper-dom-expressions/-/hyper-dom-expressions-0.23.4.tgz",
   			"integrity": "sha512-bnEkXgsf7XtLON63gSBKYWZFGBAfIP+HMyfw+WzzX9LIcWucTaS/nPHVhi3Cw+u/ia2lddOO10QrcbJIr/M0eg==",
  
hunk.file_path: package-lock.json
hunk.type: replace
file: import { createRoot } from "../../src";
  import { ErrorBoundary } from "../src";
  
  describe("Testing ErrorBoundary control flow", () => {
    let div: HTMLDivElement, disposer: () => void;
  
    const Component = () => {
      throw new Error("Failure");
    };
  
    test("Create an Error", () => {
      createRoot(dispose => {
        disposer = dispose;
        <div ref={div}><ErrorBoundary fallback="Failed Miserably"><Component /></ErrorBoundary></div>;
      });
      expect(div.innerHTML).toBe("Failed Miserably");
    });
  
    test("Create an Error callback", () => {
      createRoot(dispose => {
        disposer = dispose;
        <div ref={div}><ErrorBoundary fallback={e => e.message}><Component /></ErrorBoundary></div>;
      });
      expect(div.innerHTML).toBe("Failure");
    });
  
    test("dispose", () => disposer());
  });
  