Skip to content

vue invoke unit-mocha modifies logo and favicon #1125

Closed
@sengo4hd

Description

@sengo4hd

Version

3.0.0-beta.6

Reproduction link

https://github.com/1e3oss/vue-cli-unit-mocha-issue

Steps to reproduce

Create a new vue-cli app with "vue create", then select default.
Install the the mocha plugin as stated in documentation :
(https://github.com/vuejs/vue-cli/tree/v3.0.0-beta.6/packages/%40vue/cli-plugin-unit-mocha)

npm install -D @vue/cli-plugin-unit-mocha
vue invoke unit-mocha

Works correctly but after invoking "src/assets/logo.png" and "public/favicon.ico"
are modified to undisplayable/scrambled image. A simple git checkout return them to previous state.

The github repo just holds step by step commits of the procedure above.

What is expected?

Provide basic configuration and installation of mocha testing in existing vue-cli project

What is actually happening?

That AND modifying src/assets/logo.png and public/favicon.ico

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