unexpected-react
unexpected-react copied to clipboard
Plugin for http://unexpected.js.org to enable testing the full React virtual DOM, and also the shallow renderer
The documentation clearly states that "The order of require's is important. **unexpected-react must be required before react** is required." However if one requires/imports them in the wrong order, instead of...
Hi again ! I was wondering if it would be possible to have a flag to reduce the verbosity of the error. Or at least not showing the function definition......
> You might have previously known these as “stateless components”. We’re now introducing the ability to use React state from these, so we prefer the name “function components”. https://reactjs.org/docs/hooks-state.html#hooks-and-function-components
Does unexpected-react not support 'change' event?
Hi. I tried the following assertion: ```jsx class TextComponent extends React.Component { render() { return {this.props.text}; } } const comp = ReactTestRenderer.create(); expect(comp, 'to have rendered', foo); ``` But it...
https://travis-ci.org/bruderstein/unexpected-react
Using the "when deeply rendered" assertion on an element created with the styled-components library, v4+, fails in strange ways due to the result being misidentified as the `RenderedReactElementData` type. If...
After the upgrade to react 16.3 and unexpected-react 5 some of our tests are breaking that where working before. In some cases there are strange `` elements wrapping arrays of...
[wip] Testing CI right now 😄 Also I'm not sure if this needs support in other places like the DOM renderer... but this works for my use case right now....