-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng test --include is broken #23396
Comments
…hen using `--include` option Previously, we ammended the project source root to the source root which resulted in an invalid path. Closes angular#23396
…hen using `--include` option Previously, we amended the project source root to the source root which resulted in an invalid path. Closes angular#23396
…hen using `--include` option Previously, we amended the project source root to the source root which resulted in an invalid path. Closes #23396
@alan-agius4 , We are on angular 14.0.5 and |
@kshaw797, can you please provide the output of |
@alan-agius4 , Attached is the screenshot of output of ng v |
With the versions installed the problem should have addressed. If the problem still persists, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes.
Description
Using the --include option of the test command won't find any tests, if the workspace property is non empty.
🔬 Minimal Reproduction
ng new issue-app
cd issue-app
ng g lib issue-lib
ng test issue-lib --include '**/*.spec.ts'
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The logic here seems to assume that sourceRoot is relative to root.
The text was updated successfully, but these errors were encountered: