Created by: phacks
On a project running redux-persist, declaring the current localStorage
mock would yield warnings in tests, making them harder to visually grep:
Redux Persists checks for three methods to detect if localStorage
is defined: getItem
, setItem
and removeItem
(see relevant code).
I suggest adding a removeItem
mock to the docs as it fixes the warnings in tests.