The addon provides a storageFor computed property that returns a proxy and persists the changes to localStorage or sessionStorage. It ships with an ember-data adapter.
We've been wrestling with state bleeding between acceptance tests when one of our engineers came across the _resetStorages() helper that you use in the test suite for the addon itself. I would think this should probably be in the documentation as a way to consistently reset the value of local storage variables in Acceptance tests in a beforeEach() block since other approaches like window.localStorage.clear() don't work.
We've been wrestling with state bleeding between acceptance tests when one of our engineers came across the
_resetStorages()
helper that you use in the test suite for the addon itself. I would think this should probably be in the documentation as a way to consistently reset the value of local storage variables in Acceptance tests in abeforeEach()
block since other approaches likewindow.localStorage.clear()
don't work.