Fix the root error boundary during suspense in ssr (#4710)

* Fix the root error boundary during suspense in ssr

* fix some typos
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-10-01 17:10:28 -07:00
1 parent 10912f4750
commit ad40f81607
9 files changed
+49 -13

No files matched your search

@@ -42,6 +42,19 @@ test("error route", async ({ request }) => {
expect(response.status()).toBe(500);
});
// The async error route should return 500
test("async error route", async ({ request }) => {
await waitForBuild(request);
const response = await request.get("http://localhost:8888/async-error");
expect(response.status()).toBe(500);
// Expect the response to contain the error message
const errorMessage = "Async error from a server function";
const text = await response.text();
expect(text).toContain(errorMessage);
});
// An unknown route should return 404
test("unknown route", async ({ request }) => {
await waitForBuild(request);