Skip to content

@vue/cli-plugin-unit-jest test configuration broken #1795

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

Closed
umbertooo opened this issue Jul 9, 2018 · 1 comment
Closed

@vue/cli-plugin-unit-jest test configuration broken #1795

umbertooo opened this issue Jul 9, 2018 · 1 comment

Comments

@umbertooo
Copy link

Version

3.0.0-rc.3

Reproduction link

https://github.com/umbertooo/vue-cli-with-jest-plugin

Steps to reproduce

  1. create project vue create vue-jest-demo, for brevity I post the stored preset:
"vue-with-jest": {
    "useConfigFiles": true,
    "plugins": {
    "@vue/cli-plugin-babel": {},
    "@vue/cli-plugin-eslint": {
        "config": "base",
        "lintOn": [
        "save"
        ]
    },
    "@vue/cli-plugin-unit-jest": {}
    }
}
  1. cd vue-jest-demo
  2. npm run test:unit

What is expected?

I expect the example test tests/unit/HelloWorld.spec.js to be run.

What is actually happening?

> [email protected] test:unit /Users/myuserhome/vue-jest-demo
> vue-cli-service test:unit

No tests found
In /Users/myuserhome/vue-jest-demo
  11 files checked.
  testMatch: /Users/myuserhome/vue-jest-demo/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)) - 0 matches
  testPathIgnorePatterns: /node_modules/ - 11 matches
Pattern:  - 0 matches
ERROR  jest exited with code 1.

This repo contains the project I created following the steps above: https://github.com/umbertooo/vue-cli-with-jest-plugin
Just run npm run test:unit

@LinusBorg
Copy link
Member

Duplicate of #1686 , closed with #1756 - to be released.

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

2 participants