Is there no equivalent for `setUp` and `tearDown` that you could use? The fact that localstorage persists between tests sounds like a bad idea to me.

SHARED STATE BETWEEN TESTS == TERRORISTS WIN