Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue invoke unit-mocha modifies logo and favicon #1125

Closed
sengo4hd opened this issue Apr 13, 2018 · 2 comments
Closed

vue invoke unit-mocha modifies logo and favicon #1125

sengo4hd opened this issue Apr 13, 2018 · 2 comments

Comments

@sengo4hd
Copy link

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

@renyuanz
Copy link

the same thing happened with vue invoke unit-jest

additionally, src/assets/fonts/* are modified as well.

@Akryum
Copy link
Member

Akryum commented Apr 13, 2018

This was fixed in e65110f (not released yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants