Skip to content

options.attachToDocument is deprecated & isVueInstance is deprecated #138

Closed
@afenton90

Description

@afenton90

Describe the bug

When running the latest versions of @testing-library/vue & @vue/test-utils I get the following 2 console.error from @vue/test-utils:

[vue-test-utils]: options.attachToDocument is deprecated in favor of options.attachTo and will be removed in a future release
[vue-test-utils]: isVueInstance is deprecated and will removed in the next major version

It is true that these will be deprecated in the next major version of @vue/test-utils and there are alternatives available in the latest releases.

To Reproduce Steps to reproduce the behavior:

Install the latest versions of @testing-library/vue & @vue/test-utils and run tests.

Expected behavior

The warnings above do not appear as the library has been refactored.

Related information:

  • @testing-library/vue version: 5.0.2
  • Vue version: 2.6.11
  • @vue/test-utils version: 1.0.0
  • node version: v12.6.0
  • npm (or yarn) version: 1.22.4

Additional context

Looks like @vue/test-utils has recently had it's 1.0.0 release with these added

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