react-shallow-testutils icon indicating copy to clipboard operation
react-shallow-testutils copied to clipboard

Replacement for TestUtils when using React's shallow rendering

Results 7 react-shallow-testutils issues
Sort by recently updated
recently updated
newest added

Had a go at #5 as requested a few months ago. This is on top of #15 too, which I'll merge in soon. - [x] Use [lodash.get](https://lodash.com/docs#get) to allow deeply...

enhancement

Firstly, are you accepting PRs on this project? Second, consider the following code: ``` var Test = React.createClass({ render: function() { return } }); var TestTwo = React.createClass({ render: function()...

A softer version of `findWithRef` would be beneficial when, e.g., hiding components: ``` jsx class Foo extends Component { render() { return ( {this.props.show ? Text : undefined} ) }...

Fixes #22 - [x] Sending array or object based on number of refs given. Making sure it's backward compatible. - [x] Add tests for the new code - [x] Update...

Having something like this would be perfect `const { header, body, inner } = findWithRef(component, 'header', 'body', 'inner')`

How would you feel about a 'findWithProp' interface? I like the convenience of the 'findWithClass' function. Is there any reason we couldn't do that with props not just classnames? I'd...

Thanks for making these tools - we've been finding them particularly useful on our project. Have you considered the idea of flipping and currying the arguments to encourage more reusable...