Hello after updating the MUI v4 to version v5 i got faling test's that's looking like this
TypeError: Cannot read properties of undefined (reading 'keyboardDate')
17 | it("should render correctly without any errors", () => {
18 | expect(
> 19 | renderer.create(<DatePickerElement onChange={onChange} value="10/08/1981" />).toJSON(),
| ^
20 | ).toMatchSnapshot();
21 | });
22 | // props testing
I've done i think everything according to the guide migration and can't think of reason why this faling the component is wrapped with new <LocalizationProvider dateAdapter={AdapterDateFns} utils={DateFnsUtils}> and working fine only the test's are faling at render method did any one encountred similiar issue?
it("should render correctly without any errors", () => {
expect(
renderer
.create(<DatePickerElement onChange={onChange} value="10/08/1981" />)
.toJSON(),
).toMatchSnapshot(); });