How do I deal with localStorage in jest tests?

I keep getting “localStorage is not defined” in Jest tests which makes sense but what are my options? Hitting brick walls.

25 Answers
25

Leave a Comment