Skip to content

Mock out localStorage for component tests #16531

Discussion options

You must be logged in to vote

I'm a bit onfused - what are you asking for? Since everything runs in a real browser, localStorage should work as you'd expect.

We do clear local storage before each test. I also found this community plugin which allows you to persist localStorage, but I am not sure what the main use cases are for this.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Norfeldt
Comment options

Answer selected by Norfeldt
Comment options

You must be logged in to vote
1 reply
@Norfeldt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants