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
This test
test('renders row', () => { const Row = () => ( <tr> <td>Hello</td> </tr> ); expect( <Row />, 'to deeply render as', <tr> <td>Hello</td> </tr> ); });
Prints this warning:
console.error Warning: validateDOMNesting(...): <tr> cannot appear as a child of <div>. in tr (created by Row) in Row in StatelessWrapper
Workaround:
test('renders row', () => { const Row = () => ( <tr> <td>Hello</td> </tr> ); expect( <table> <tbody> <Row /> </tbody> </table>, 'to deeply render as', <table> <tbody> <tr> <td>Hello</td> </tr> </tbody> </table> ); });
Could unexpected-react somehow improve the situation by
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This test
Prints this warning:
Workaround:
Could unexpected-react somehow improve the situation by
The text was updated successfully, but these errors were encountered: