WIP: add test sample with zone-testing#3701
WIP: add test sample with zone-testing#3701JiaLiPassion wants to merge 3 commits intoReactiveX:experimentalfrom
Conversation
|
This is awesome! Thanks, @JiaLiPassion! I'm going to take this example and try to work out what the next generation of marble testing looks like. We're likely to have to change a few things to accommodate the fact that async/await cannot be hooked ala zones. |
|
(Marked as "blocked", because I'm not sure I'll merge this straight in, or just use it as an example.) |
|
@benlesh, thanks, I just use this PR as a discussion place, so we can discuss whether
in |
|
@JiaLiPassion ... I'm closing this, but only to unclutter the pulls list. This is definitely going to be used as a reference for future work on the test scheduler, which there is still ongoing design work for. |
|
@benlesh, sure, if there is anything need to do in |
Description:
This PR is based on @benlesh 's document here. https://docs.google.com/document/d/1sIUgRVRgcsLcC8B5sbCAPDvA_lrYcACzh9Q80vxFTbw/
This is a experimental PR to try to let
rxjstest withzone-testing, this PR will use the experimental version ofzone.js(angular/zone.js#1084) . So with adding more test cases, we will find more use cases and find out currentzone-testingAPIs satisfy therxjsrequirements or not.Current status:
zone-testingfakeAsync test cases forcombineLatest, usesetIntervalto createObservable, thoseasynctest cases was originally handled byTestScheduler.marble testsample withzone-testinglater.Related issue (if exists):