Skip to content

No tests found on 'ng test' with dot in the path to the root directory #615

@MaKCbIMKo

Description

@MaKCbIMKo

Describe the bug
When I do ng test - it doesn't find any single test.

Firstly, I tried that on existing project (which is using jest but via jest cli and I know tests exist) -> 0 tests discovered.
Then, I tried new project (via ng new) -> 0 tests discovered.
At last, I downloaded simple-app example -> 0 tests discovered.

And I have no idea what I am doing wrong or haven't configured properly.

Any ideas what's the reason?

Ask for more information -> will provide information that might help.

To Reproduce
(for instance, new project)

  1. ng new jest-app
  2. npm i -D jest @types/jest @angular-builders/jest
  3. adjust angular.json to use new builder
  4. npm run test -> ng test

Expected behavior
All tests are discovered

Builder:

  • @angular-builders/jest
  • 8.2.0

Libraries

  • angular-devkit/build-angular: from 0.802.2 to 0.803.19

Additional context

  • node.js: 12.13.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions