React tests/Jest snapshots issue after ionic v6 upgrade

I have upgraded my ionic app to v6 and followed the steps from the documentation. I have updated the below modules to use v6
@ionic/core”: “6”,
@ionic/react”: “6”,
@ionic/react-router”: “6”,

And I have also updated the --transformIgnorePatterns in the jest config and also tried in package.json along with the setupIonicReact().

All the functionalities are working fine after this update but for some reason the jest tests are failing.

Reason for failure - Jest snapshots are fllled up with the DOM fibernodes which end up not having enough space for the snapshot.

This issue is discussed here but I am not seeing any solution.