Closed
Description
function Suspender() {
throw new Promise(() => null);
return null;
}
render(<Suspender />)
screen.debug()
This logs:
console.log
<body>
<div />
</body>
It's missing the error:
A React component suspended while rendering, but no fallback UI was specified
In a "real" (non test) environment, you get this warning. Ideally test semantics match the real semantics.
Metadata
Metadata
Assignees
Labels
No labels