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

Only run tests from the tests/unit directory #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rlindskog
Copy link

@rlindskog rlindskog commented Nov 19, 2018

Currently, vue-cli-plugin-unit-karma is running all tests in the tests directory. This is a problem, because it's also attempting to run my vue-cli-plugin-e2e-cypress tests in the tests/e2e directory.

According to the docs, it should only be running tests/unit.
https://github.com/davidwallacejackson/vue-cli-plugin-unit-karma#usage

This PR changes it to only run tests in the tests/unit directory

@smoothdvd
Copy link

@rlindskog You can use

pluginOptions: {
    karma: {
      files: [
        'tests/unit/**/*.spec.js',
      ]
   }
}

override this option in vue.config.js

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

Successfully merging this pull request may close these issues.

None yet

2 participants