chore(eslint): enables recommended eslint rules for testing-library and jest-dom (#42817)

This commit is contained in:
Anirudh Modi
2021-07-20 19:51:16 +05:30
committed by GitHub
parent a368e7f277
commit ef3b7ec955
20 changed files with 184 additions and 163 deletions

View File

@ -22,10 +22,10 @@ function getComponentNameAndProps(elementType, pathname) {
}
});
shallow.render(<Provider store={store}>{LayoutReactComponent}</Provider>);
const renderedComponent = shallow.getRenderOutput();
const view = shallow.getRenderOutput();
return {
props: renderedComponent.props,
name: renderedComponent.type.WrappedComponent.displayName
props: view.props,
name: view.type.WrappedComponent.displayName
};
}