set PropsWithChildren as explicit type on components
Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,7 @@ describe('<FossaCard />', () => {
|
||||
getFindingSummary: jest.fn(),
|
||||
getFindingSummaries: jest.fn(),
|
||||
};
|
||||
let Wrapper: React.ComponentType;
|
||||
let Wrapper: React.ComponentType<React.PropsWithChildren<{}>>;
|
||||
|
||||
beforeEach(() => {
|
||||
Wrapper = ({ children }: { children?: React.ReactNode }) => (
|
||||
|
||||
@@ -38,7 +38,7 @@ describe('<FossaPage />', () => {
|
||||
getFindingSummary: jest.fn(),
|
||||
getFindingSummaries: jest.fn(),
|
||||
};
|
||||
let Wrapper: React.ComponentType;
|
||||
let Wrapper: React.ComponentType<React.PropsWithChildren<{}>>;
|
||||
|
||||
beforeEach(() => {
|
||||
Wrapper = ({ children }: { children?: React.ReactNode }) => (
|
||||
|
||||
Reference in New Issue
Block a user