What is the correct way of unit testing a React component prop update.
Here is my test fixture;
describe(\'updating the value\', function(){
Quick addition, as I was looking for an answer for testing-library, and didn't find it here: there's an example in this issue, and it looks like this:
const {container} = render( )
// update the props, re-render to the same container
render( , {container})
Alternatively, testing-library now offers a "rerender" method that accomplishes the same thing.