79795795

Date: 2025-10-21 12:14:16
Score: 1
Natty:
Report link

Resolved the issue, if anyone comes across the same issue, ensure that your mocks are properly mocked:

Failing:

jest.mock('@mui/x-date-pickers/LocalizationProvider', () => ({
  __esModule: true,
  default: (p: { children?: any }) => p.children,
}));

Passing:

jest.mock('@mui/x-date-pickers/LocalizationProvider', () => ({
  __esModule: true,
  LocalizationProvider: (p: { children?: any }) => p.children,
}));
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DHZA