Skip to content

cli-plugin-unit-jest indirectly depends on an old version of core-js #5125

Open
@sirlancelot

Description

@sirlancelot

Version

4.1.2

Environment info

System:
    OS: macOS Mojave 10.14.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node
    Yarn: Not Found
    npm: 6.13.4 - ~/.nvm/versions/node/v10.16.3/bin/npm
  Browsers:
    Chrome: 79.0.3945.130
    Firefox: 72.0.2
    Safari: 13.0.5
  npmPackages:
    @vue/cli-plugin-unit-jest: 4.1.2 => 4.1.2
    ... a lot ...

Steps to reproduce

Start a new Vue CLI project
Include Jest tests
Install packages
Observe the dependency tree

What is expected?

core-js@2 should not get installed

What is actually happening?

core-js@2 is getting installed via the following dependency chain:

$ npm ls core-js@2
[email protected] ~/Git/vue-cli-project
└─┬ @vue/[email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected] 

The rest of the project uses core-js@3 properly, this is the only package which brings in the older version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions