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

Jest tries to execute E2E tests #740

Closed
Ldoppea opened this issue Jan 28, 2018 · 1 comment
Closed

Jest tries to execute E2E tests #740

Ldoppea opened this issue Jan 28, 2018 · 1 comment
Labels

Comments

@Ldoppea
Copy link

Ldoppea commented Jan 28, 2018

Version

3.0.0-alpha.4

Reproduction link

https://github.com/Ldoppea/vue-cli-jest-e2e

Steps to reproduce

  • execute vue create myapp
  • select Manually select features
  • select Unit Testing and E2E Testing
  • select Jest
  • select Cypress (Chrome only)
  • select Use Yarn
  • Wait for install
  • run yarn test

What is expected?

Only test/unit/HelloWorld.spec.js should be executed

E2E tests should not be executed

What is actually happening?

test/e2e/specs/test.js is executed and throws an error


I just created a project using Vue-CLI and selected Jest and Cypress as testing frameworks. Generated Jest configuration includes e2e tests which should not be the case.

@helaili
Copy link

helaili commented Feb 3, 2018

I've run into the same issue but not using Typescript the fix doesn't wok for me. Looking at the code, I see it's meant this way but I don't see a reason why it should only apply when Typescript is used.

https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/cli-plugin-unit-jest/index.js#L21..L23

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

3 participants