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.
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.