mantoni / mochify.js

☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver
MIT License
346 stars 57 forks source link

Use non-blocking loop to poll for events #232

Closed m90 closed 3 years ago

m90 commented 3 years ago

When debugging why the jsdom driver that I am working on was never running any tests I found out it's because of the following:

This is not a problem for headless browsers et al as they run on a different thread, yet I would assume allowing drivers to use the same thread as mochify can be helpful.


The jsdom driver works now including this change, but there's a lot of clean up to do still, so I thought this should go into a dedicated PR.