How do you debug a shallow rendered enzyme test?
问题 I am trying to fix a failing test in my react-redux app. When I dive and dive again into my component, I expect to see the JSX within it. However, I don't see anything. Here is my component - const Dashboard = (props) => { if (props.isSignedIn) return ( <div className="dashboard"> <h1>Welcome</h1> </div> ); return null; }; const mapStateToProps = (state) => { return { isSignedIn: state.auth.isSignedIn }; }; export default connect(mapStateToProps, { signIn, signOut })(Dashboard); Here is my