Skip to content

Bug: ReferenceError: Vue is not defined for v2.0.0 #1525

Closed
@pdsuwwz

Description

@pdsuwwz

Describe the bug

In the latest version (v2.0.0), the introduction of @vue/test-utils will result in an error.

Minimal reproduction: https://github.com/pdsuwwz/vue-unit/pull/17/files

Related action: https://github.com/pdsuwwz/vue-unit/runs/6535330150?check_suite_focus=true

image

image

image

To Reproduce

Upgrade the version of @vue/test-utils from v2.0.0-rc.21 to v2.0.0
https://www.npmjs.com/package/@vue/test-utils/v/2.0.0

Expected behavior

Unit test passed.

Related information:

  • @vue/test-utils version: v2.0.0
  • Vue version: v3.2.35
  • node version: v14.19.2
  • npm (or yarn) version: v6.14.17

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions