Skip to content

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

Closed
@natasher

Description

@natasher

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 ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions