Skip to content

Error: [vue-test-utils]: enableAutoDestroy cannot be called more than once #1638

Closed
@mariadb-ThienLy

Description

@mariadb-ThienLy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions