aurelia / testing

Simplifies the testing of UI components by providing an elegant, fluent interface for arranging test setups along with a number of runtime debug/test helpers.
MIT License
40 stars 27 forks source link

setTimout is evil ;-) #96

Open jfstephe opened 4 years ago

jfstephe commented 4 years ago

Hi, Can the setTimeout be removed from here please?

If this has been replaced with sinon fakeTimers this just causes all manner of problems.

Why is it there and can it be replaced by the aurelia task queue?

Ta, John

bigopon commented 4 years ago

@jfstephe did you run into any issues with a fakeTimers? Can you help describe it a bit more in details? There's no reason we cannot change it, but there's no other alternative. It's there, probably, to wait for all the micro-tasks to complete