michaelolof / vuex-class-component

A Type Safe Vuex Module or Store Using ES6 Classes and ES7 Decorators written in TypeScript.
217 stars 21 forks source link

Fix strict test #78

Closed Glandos closed 3 years ago

Glandos commented 4 years ago

This is a continuation of #77

In this one, I enabled strict mode for Vuex, and set the strict option of VuexModule to false, to enable automatic setters. I had to implement clearProxyCache, because otherwise, previously defined modules, watchers and other things were conflicting.

Be careful, I also clean __vuex_module_cache__ in this one. In fact, the best way for tests should be to have access to initializeModuleInternals, but I don't know if it is meant to be used like this.

Glandos commented 3 years ago

Superseeded by #92