Skip to content

Can't find and run generated unit tests #1804

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
sntran opened this issue Jul 10, 2018 · 1 comment
Closed

Can't find and run generated unit tests #1804

sntran opened this issue Jul 10, 2018 · 1 comment

Comments

@sntran
Copy link

sntran commented Jul 10, 2018

Version

3.0.0-rc.3

Reproduction link

https://github.com/sntran/vue-pwa-boilerplate

Steps to reproduce

$ vue create post-office


Vue CLI v3.0.0-rc.3
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, TS, PWA, Router, Vuex, Linter, Unit, E2E
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript for auto-detected polyfills? Yes
? Pick a linter / formatter config: TSLint
? Pick additional lint features: Lint on save, Lint and fix on commit
? Pick a unit testing solution: Jest
? Pick a E2E testing solution: Cypress
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In package.json
? Save this as a preset for future projects? No

$ cd post-office
$ yarn test:unit

What is expected?

Tests in "tests/unit/HelloWorld.spec.ts" are found and run.

What is actually happening?

yarn run v1.7.0
$ vue-cli-service test:unit
No tests found
In /Users/sntran/Projects/post-office
  21 files checked.
  testMatch: /Users/sntran/Projects/post-office/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)) - 0 matches
  testPathIgnorePatterns: /node_modules/ - 21 matches
Pattern:  - 0 matches
 ERROR  jest exited with code 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

E2E tests run fine.

This happens on MacOS High Sierra v10.13.5.

@Akryum
Copy link
Member

Akryum commented Jul 10, 2018

Duplicate of #1686

@Akryum Akryum closed this as completed Jul 10, 2018
@Akryum Akryum marked this as a duplicate of #1686 Jul 10, 2018
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