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

yarn/npm run test - runs e2e tests instead of unit tests #790

Closed
natasher opened this issue Feb 6, 2018 · 0 comments
Closed

yarn/npm run test - runs e2e tests instead of unit tests #790

natasher opened this issue Feb 6, 2018 · 0 comments
Labels

Comments

@natasher
Copy link

natasher commented Feb 6, 2018

Version

3.0.0-alpha.8

Reproduction link

https://github.com/natasher/vue-cli-test/

Steps to reproduce

Terminal:

  1. vue create cli-test
  2. When @vue/cli asks for test tools, choose Cypress for e2e and Mocha Chai for unit tests.
  3. yarn test

What is expected?

Runs test/unit/HelloWorld.spec.js

What is actually happening?

Runs test/e2e/specs/test.js


If path to unit tests folder is provided in package.json ( scripts / test : vue-cli-service test test/unit ), script runs as expected.
Additionally script complains for module.exports (probably mixed with import ).

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

No branches or pull requests

2 participants