Created by: email2vimalraj
The mocking example for the localStorage
which was provided earlier was breaking after the recent jest
update (using CRA - v3.0
). I've updated the example to mock through the Storage
api.
Sample code sandbox: https://codesandbox.io/s/43pn52xmz0?fontsize=14&previewwindow=tests