hunk.code_window:       </div>;
       });
       expect(div.innerHTML).toBe("Failed Miserably");
     });
     test("Create an Error callback", () => {
       createRoot(dispose => {
         disposer = dispose;
  
hunk.labels: keep keep keep keep add keep keep keep
hunk.after_edit:   test("Create an Error with null", () => {
       createRoot(dispose => {
         disposer = dispose;
         <div ref={div}>
           <ErrorBoundary fallback="Failed Miserably">
             <Component3 />
           </ErrorBoundary>
         </div>;
       });
       expect(div.innerHTML).toBe("Failed Miserably");
     });
  
hunk.file_path: packages/solid/web/test/errorboundary.spec.tsx
hunk.type: add
file: import { renderToString, renderToStringAsync, renderToStream } from "../src/server-mock";
  
  const origConsoleError = console.error;
  const mockConsoleError = jest.fn();
  
  beforeEach(() => {
    console.error = mockConsoleError;
    mockConsoleError.mockReset();
  });
  
  afterAll(() => {
    console.error = origConsoleError;
  });
  
  test("renderToString", () => {
    const result = renderToString(() => {});
  
    const err: Error = mockConsoleError.mock.calls[0][0];
  
    expect(err.message).toContain(
      "renderToString is not supported in the browser, returning undefined"
    );
    expect(result).toBeUndefined();
  });
  
  test("renderToStringAsync", () => {
    const result = renderToStringAsync(() => {});
  
    const err: Error = mockConsoleError.mock.calls[0][0];
  
    expect(err.message).toContain(
      "renderToStringAsync is not supported in the browser, returning undefined"
    );
    expect(result).toBeUndefined();
  });
  
  test("renderToStream", () => {
    const result = renderToStream(() => {});
  
    const err: Error = mockConsoleError.mock.calls[0][0];
  
    expect(err.message).toContain(
      "renderToStream is not supported in the browser, returning undefined"
    );
    expect(result).toBeUndefined();
  });
  