Jest: Cannot read properties of undefined (reading ‘getItem’) when trying to mock Async Storage
I am struggling getting my jest spec to work with AsyncStorage
. I followed the guide on Jest integration with Async Storage and used the guidance for setting up the mocks directory. This makes my project structure look like so…
.