Trying to figure out which is best between:
fakeAsync(() => {
fixture.detectChanges();
flush();
});
and
async () => {
await fixture.whenStable();
}
Initial tests seem to point to the former, but the later might be cleaner as it doesn't mess with time (and allows complex test scenarios where it is necessary to manipulate time).
Trying to figure out which is best between:
and
Initial tests seem to point to the former, but the later might be cleaner as it doesn't mess with time (and allows complex test scenarios where it is necessary to manipulate time).