-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
React19 - Document Metadata feature #1379
Comments
You should query |
Could you be a little more explicit? BTW i think I found a workaround, maybe I can use the Next generateMetadata helper and manually test the exported function. |
I don't think stringify works on HTML elements. I meant that you can just |
That worked! Thanks!! 🙌 |
@testing-library/react
version: 16.2.0Relevant code or config:
What you did:
I updated React to v19
What happened:
After updating to React19 I found out that my tests related to stuff in the
Head
tag were all failing. When I didscreen.debug()
, I found out that no meta or link tags were being rendered in the<div data-role="head">
Next tag (as it does with React18). This is probably related to how react handles meta tags on V19 (https://react.dev/blog/2024/12/05/react-19#support-for-metadata-tags)Problem description:
We cannot test anything inside the head tag anymore.
P.S: I don't know if this is the right place to ask for help about this, let me know if you think i should actually file an issue in the react or next project instead :c
The text was updated successfully, but these errors were encountered: