You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
I wanted to use Zone.js for our project in E2E testing. We don't use Angular so we just wanted to use the raw Zone.js. In our app there are a lot of async tasks and I want every E2E test to wait until all async tasks are finished and then do a cleanup. Zone.js seems to help with this issue, but I can't get it to work. When I wait in onHasTask for hasTaskState.macroTask === false && hasTaskState.microTask === false I encounter situations where it seems that the E2E test finishes more often. I was able to create a small jsfiddle which demonstrates my problem: https://jsfiddle.net/r0sokrvg/5/
I'm not sure if it is an issue that Zone.js sets both hasTaskState.macroTask and hasTaskState.microTask to false but there are still tasks to process. Maybe I'm just using Zone.js wrong. I tried many things but I think I'm missing some important point.