Closed

Description
What problem does this feature solve?
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.