We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
This behavior changed in React 18. There is no longer a warning when there's no Suspense boundary: https://codesandbox.io/s/missing-suspense-is-fine-ir1jl4
I'll double-check if that's intended by React and just forgotten in the changelog. But it's nothing we can do on our side.
Sorry, something went wrong.
Intentionally changed in facebook/react#23267
No branches or pull requests
This logs:
It's missing the error:
In a "real" (non test) environment, you get this warning. Ideally test semantics match the real semantics.
The text was updated successfully, but these errors were encountered: