-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Puppeteer now has experimental support for Firefox which would enable Mochify to run tests in Node, Chrome and Firefox (which is pretty great).
Looking at the table of already supported APIs everything that Mochify uses should already be implemented and theoretically the modules could just be hotswapped depending on which browser is targeted.
One big question I don't know an answer for: does this mean Mochify would include both puppeteer as well as puppeteer-firefox as a dependency (which would result in an even heftier install, probably too hefty) or should puppeteer-firefox live as an optionalDependency or peerDependency, or as something completely different? (Caveat: I don't know if puppeteer-firefox is even supposed to stay a dedicated package once it is mature, although I would be surprised if it wouldn't).
NB: As of March 2019 puppeteer-firefox has a bug where pages run in the context of file:// will not trigger console events, thus preventing usage with Mochify right now.