set PropsWithChildren as explicit type on components

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
Oleg S
2023-05-05 13:26:58 -04:00
committed by Fredrik Adelöw
parent 38d8ad9373
commit 74b216ee4e
64 changed files with 149 additions and 110 deletions
@@ -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 }) => (