ptomato / jasmine-gjs

Jasmine for GJS
MIT License
20 stars 8 forks source link

Avoid mainloop pollution #21

Open ptomato opened 7 years ago

ptomato commented 7 years ago

The problem is that earlier tests can schedule a timeout on the mainloop, and when later tests would advance the mainloop unexpected events would be triggered.

Would be nice to ensure that each it runs in its own mainloop or in some other way assure the mainloop is flushed after each test. Tricky because jasmine uses setTimeout internally, which we implement using none other than glib's mainloop.