Closed
Description
enableAutoDestroy doesn't work as expected
Basically I have many ***spec.js files. There are two files that I call this helper, it prompts error immediately after I run the all tests.
Steps to reproduce
Create two dummy unit tests files. e.g. Hello.spec.js and Dummy.spec.js and calls
enableAutoDestroy(afterEach)
Expected behaviour
Should work normal as using wrapper.destroy() in afterEach hooks
Actual behaviour
Error: [vue-test-utils]: enableAutoDestroy cannot be called more than once