You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is necessary to call wrapper.destroy() / wrapper.vm.$destroy() manually. Forgetting to do so may result in difficult to track down side effects and performance degradation (especially when not mocking Vuex).
What does the proposed API look like?
Introduce a new enableAutoDestroy() helper which accepts a hook function such as afterEach() to call wrapper.destroy() as callback.