I am using Angular with Jest. While running ng test (nx test in my case because I am using nrwl/nx), I got this error for a component while the last test was hanging:
Call retries were exceeded at ChildProcessWorker.initialize
I am using Angular with Jest. While running ng test (nx test in my case because I am using nrwl/nx), I got this error for a component while the last test was hanging:
Call retries were exceeded at ChildProcessWorker.initialize
I later found out that I had a setTimeout in my AfterViewInit() hook and this caused the error.
If you have a timer in your component, do the following in order to fix it: