I\'m writing Jest tests for my React code and hoping to make use of/test the PropType checks. I am quite new to the Javascript universe. I\'m using npm to install reac
reac
Since ReactJS will only send warnings to the console but will not actually throw an error, I test prop values in this way:
var myTestElement = TestUtils.renderIntoDocument( ); it("check MyTestElement props", function() { expect( typeof myTestElement.props.height ).toEqual ( 'number' ); });