I like to test a component inside Connect in a Redux app:
this.component = TestUtils.renderIntoDocument(<Provider store={store}><Header path={this.path} /></Provider>);
I have no idea about how to access Header inside Provider...(since I can not stop through in a debugger when running the jest from CLI.
So when I tried to get a child inside Header
const path = findDOMNode(self.component.refs.pathElemSpan);
console.log("path="+path)
I got undefined on path
Any suggestion?
thanks