-
Notifications
You must be signed in to change notification settings - Fork 12k
Can't set test directory outside of folder where test.ts is located in -beta.19 #3077
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
Comments
I have same issue, but reproduce steps a bit easier:
and |
Same issue.. i'm using the /src/index.ts to be able to import my stuff from another repo. |
status update: issue is related to |
@hansl do you have an idea where in |
This might have been a side effect of https://github.com/angular/angular-cli/pull/2291/files. Can you try locally deleting |
@filipesilva I will try to |
Same error. |
@filipesilva @valorkin Unfortunately, that does not solve this issue, |
@bfwg I am trying to do same, but now had to pin to the version, however I need the latest for some new fixes. any plan to fix this soon? @filipesilva @hansl |
I upgraded |
@harunurhan that's great to hear!!! Closing this issue as it is reported to be working now. |
I'm having this issue in 1.4.5. Replacing:
with:
fails to find any tests. I can manually add files using absolute path:
But it doesn't seem to be combining relative paths correctly, as using:
I'm getting the error:
|
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. |
OS?
macOS Sierra
Versions.
angular-cli: 1.0.0-beta.19-3
node: 5.12.0
os: darwin x64
Repro steps.
in generated
test.ts
, I only changed the test files pathrequire.context('../other-folder', true, /\.spec\.ts/);
. It was working inbeta.15
but withbeta.19
I getERROR in ENOTDIR: not a directory, scandir '/path/to/other-folder/index.ts'
, just before karma is started, in other words before[karma]: Karma v1.2.0 server started at http://localhost:9876/
log. And for this reason it doesn't find any test, printsChrome 54.0.2840 (Mac OS X 10.12.1): Executed 0 of 0 ERROR (0.004 secs / 0 secs)
.Same setup works when I use
./
path but my tests are in another folder.The log given by the failure.
ERROR in ENOTDIR: not a directory, scandir '/path/to/other-folder/index.ts'
there is no stack trace or more log messages even if when I start karma with
verbose
flag.The text was updated successfully, but these errors were encountered: