score:0

Accepted answer
const mockPdfCountriesTable = jest.fn();
// eslint-disable-next-line react/display-name
jest.mock(
  '@components/admin/PdfReport/PdfCountriesPage/PdfCountriesPageTable',
  () => (props) => {
    mockPdfCountriesTable(props);
    return <mockPdfCountriesTable />;
  }
);

Related Query

More Query from same tag