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

No tests found when running npm run test:unit #1691

Closed
hajarrashidi opened this issue Jun 27, 2018 · 2 comments
Closed

No tests found when running npm run test:unit #1691

hajarrashidi opened this issue Jun 27, 2018 · 2 comments

Comments

@hajarrashidi
Copy link

Version

3.0.0-rc.3

Reproduction link

https://github.com/hajarrashidi/Vue-test-utils-example

Steps to reproduce

Windows 10 cmd:
vue create app
cd app
npm run test:unit

What is expected?

To run jest unit tests

What is actually happening?

When i create a project with vue create and run test i get errors. Not what i expect from a new project.


Maybe has something to do with testMatch being wrong in windows

testMatch: C:\Users\hajar.rashidi\repos\Vue-test-utils-example\app(tests\unit***.spec.(js|jsx|ts|tsx)|**_tests_*.(js|jsx|ts|tsx)) - 0 matches

Image
https://imgur.com/lW9IMZO

@trashpanda001
Copy link
Contributor

This may be a Jest bug: jestjs/jest#6546

@lmiller1990
Copy link
Member

This is a dup of #1686 , see if that workaround helps you

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

4 participants