superwf / vuex-cache

cache vuex action when dispatch
MIT License
510 stars 32 forks source link

Export StoreCache interface so that it can be mocked #41

Closed kierans closed 4 years ago

kierans commented 4 years ago

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 commented 4 years ago

Published under version 3.1.1

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