Skip to content

Cypress update instructions given say to update with npm, even if you're using yarn #2871

@silbinarywolf

Description

@silbinarywolf

Current behavior:

When I open Cypress and there's a new update, the update instructions tell me to use npm install --save-dev cypress@3.1.2 rather than saying yarn add --dev cypress@3.1.2.

Desired behavior:

If a yarn.lock file is detected instead of a package-lock.json file, the message should given you the yarn instructions.

The location of the update code is found at:

  • packages/desktop-gui/src/update/update-banner.jsx

The location of the code that tests the update banner:

  • integration/update_banner_spec.coffee

Steps to reproduce:

I assume you should be able install Cypress 3.1.1, run it with ``cypress open` and see the update button / with instructions.

Versions

  • 3.1.1

Operating System

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions