How do I deal with localStorage in jest tests? by IT Nursery I keep getting “localStorage is not defined” in Jest tests which makes sense but what are my options? Hitting brick walls. 25 Answers 25