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

create project fail by vue ui #2554

Closed
BingKui opened this issue Sep 19, 2018 · 2 comments · Fixed by #3212
Closed

create project fail by vue ui #2554

BingKui opened this issue Sep 19, 2018 · 2 comments · Fixed by #3212

Comments

@BingKui
Copy link

BingKui commented Sep 19, 2018

Version

3.0.3

Node and OS info

Node 10.10.0 / NPM 6.4.1/ MacOS 10.13.6

Steps to reproduce

Create Project

  • select all feature, next step
  • use class-style, use babel, use history mode for router
  • select less, select ESLint Airbnb config, lint on save & lint and fix on commit
  • unit test select Jest
  • E2E test select Cypress
  • click create project button

What is expected?

project created success

What is actually happening?

Running completion hooks...error: '@vue/test-utils' should be listed in the project's dependencies, not devDependencies (import/no-extraneous-dependencies) at vueDemo/tests/unit/example.spec.ts:1:1:

1 | import { shallowMount } from '@vue/test-utils';
| ^
2 | import HelloWorld from '@/components/HelloWorld.vue';
3 |
4 | describe('HelloWorld.vue', () => {

@BingKui
Copy link
Author

BingKui commented Sep 19, 2018

No error will be reported if you do not use the test tool

@jacekkarczmarczyk
Copy link

This looks like a quite recent bug, afair I haven't seen it in 3.0.0 or 3.0.1

@haoqunjiang haoqunjiang added bug and removed upstream labels Nov 9, 2018
haoqunjiang added a commit to haoqunjiang/vue-cli that referenced this issue Dec 29, 2018
haoqunjiang added a commit that referenced this issue Dec 30, 2018
…3212)

* fix: fix eslint cwd confusion during onCreateComplete hook execution

fixes #2554
fixes #3142

* fix: do not mock process.cwd during invoking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants