A tool for people curious about the React Server Components protocol rscexplorer.dev/
rsc react

verify error propagates in test

+2 -3
+2 -3
tests/actionerror.spec.ts
··· 82 82 const errorText = await errorEntry.innerText(); 83 83 expect(errorText).toContain("Action failed intentionally"); 84 84 85 - // The error propagates to the preview (no ErrorBoundary in the sample), 86 - // so the preview will show the error message instead of the button. 87 - // The key verification is that the error entry appears in the FlightLog. 85 + // Verify preview shows error (no ErrorBoundary, so error propagates) 86 + expect(await h.preview("Action failed intentionally")).toContain("Action failed intentionally"); 88 87 }); 89 88 90 89 test("action error - raw action with invalid payload shows error", async () => {