Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export StoreCache interface so that it can be mocked #41

Closed
kierans opened this issue Mar 21, 2020 · 1 comment · Fixed by #42
Closed

Export StoreCache interface so that it can be mocked #41

kierans opened this issue Mar 21, 2020 · 1 comment · Fixed by #42

Comments

@kierans
Copy link
Contributor

kierans commented Mar 21, 2020

In my Component tests, I want to mock/fake my Vuex Store and the cache property to make sure that my component is integrating with my actions correctly.

However because the StoreCache interface isn't exported I can't create a typesafe mock/fake.

@VitorLuizC
Copy link
Collaborator

Published under version 3.1.1

https://github.com/superwf/vuex-cache/blob/master/CHANGELOG.md#311

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

Successfully merging a pull request may close this issue.

2 participants