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
Running ng test in windows fails with EMFILE error
#977
Comments
|
Yup, same error as Ward's. My question is: If |
|
They might, yes. Investigating. |
|
Possibly related: angular/angular#4525 |
|
The explanation for why |
|
Further investigation shows that the problem occurs because of karma serving the files in Effectively, the process is watching those files files twice - once for rebuilding them and once for testing them. I don't have a solution for this at the moment. |
|
FYI, I changed my "test" npm-script to: That's a good workaround until this is fixed. |
|
@JohannesHoppe your solution is better than the one I put up in https://github.com/angular/angular-cli/pull/991/files. Would you be interested in making a PR replacing my warning? |
|
Sure, I'll do that. 😄 |
|
I think it should be I still think separate ng serve + ng test processes are good for running tests in watch mode whereas the npm script change is better for running it once. |
|
@JohannesHoppe your workaround works but only when running @filipesilva I tried to dig into angular-cli code but didn't found where it was specified :( FYI |
|
Issue made obsolete by #1455. |
|
YES!!! Webpack awesome thanks! Just ran into this this morning |
…y angular-cli@webpack) see angular/angular-cli#977
|
I also have this issue and on Win10 and using |
|
please guys, i am trying to run an ng test and i am getting the following error here is my karma.config please any work-around, i am desperate here. |
|
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. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Running
ng teston Windows, with admin permissions, on a newly generated project fails with aError: EMFILE: too many open fileserror.Running
ng serveandng test --build=falsein separate works though./cc @wardbell
OS: Windows 10
Reproduction steps:
Result:
The text was updated successfully, but these errors were encountered: