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
react-testing-library
react
node
npm
yarn
in a previously closed ticket #65 (comment) you suggest calling
render(<C {...newProps}/>, container)
to rerender with new props, but when I do this, the existing instance is not updated, but I get a new instance of the component.
window.xxx=this
render(<C value="177"/>, container)
window.xxx!==this
https://codesandbox.io/s/jj56q52rqw
You can see that the test output renders 2 instances of the Hello component, and that componentDidUpdate is never called
I don't know how to test property change behavior on my components
The text was updated successfully, but these errors were encountered:
render(<Hello name="Jack" />, container);
probably needs to be:
render(<Hello name="Jack" />, {container});
https://codesandbox.io/s/okyw07246
Sorry, something went wrong.
Thanks for catching that @puemos!
fix(package): delete cc-test-reporter (testing-library#273)
e2b5434
No branches or pull requests
react-testing-library
version:5.4.4react
version:16.7.0node
version: v8.10.0npm
(oryarn
) version: yarn 10.1.1Relevant code or config:
in a previously closed ticket #65 (comment) you suggest calling
to rerender with new props, but when I do this, the existing instance is not updated, but I get a new instance of the component.
What you did:
window.xxx=this
render(<C value="177"/>, container)
window.xxx!==this
What happened:
Reproduction:
https://codesandbox.io/s/jj56q52rqw
You can see that the test output renders 2 instances of the Hello component, and that componentDidUpdate is never called
Problem description:
I don't know how to test property change behavior on my components
Suggested solution:
The text was updated successfully, but these errors were encountered: