Mochify v5.0.0 Release Notes
-
This release REPLACES PhantomJS with Headless Chrome!
๐ > Not all features could be preserved, unfortunately (see known issues below). ๐ > The improved compatibility, performance and debugging features make this a ๐ > great step forward, but consider this release to be potentially immature as
the underlying Puppeteer implementation is under heavy development. โฌ๏ธ > Carefully test whether upgrading is acceptable for your project.
๐ฅ Breaking changes
- 0๏ธโฃ Runs Headless Chrome by default
- ๐ Puppeteer requires Node 6, so support for Node 4 had to be dropped.
- ๐ PhantomJS was removed entirely and with it the
--port
and--phantomjs
options. - ๐ Downloads a recent chromium version during installation. See the install
instructions in the
README.md
if this is causing trouble.
๐ New features
- โ
--url
to run tests in the context of a web page can now also be used with Headless Chrome. This was previously limited to WebDriver. Can be afile:
URL. --https-server
launches a simple HTTPS server with a self-signed certificate and tests are run in the context of an empty page. Additional files that are requested are looked up from the current directory. This can be used to run tests in a Worker. This can be combined with--url
to load a specific HTML page through the HTTPS server.- โ
--debug
runs the tests in a full chrome instance with developer tools. Use thedebugger
statement to set a breakpoint. --chrome
allows to specify a Chrome executable to run instead of the built-in chromium.- ๐ป
--no-commondir
is now forwarded to Browserify
Known issues
- Page navigation is not prevented with Headless Chrome. Whether this is an issue depends on the way your test cases trigger page navigation.
- โ Stack traces are missing in asynchronous test cases.