While I am writing test case for my react component I am getting
TypeError: Cannot assign to read only property 'x' of object '#'
wherein while the application run it does not throw similiar error
The code for it is pretty basic
this.props.defaultForm = true;
Why the behavior is different for test and actual application RUN?
What would be work around if I want to write a test case?