I found that with v6 all of my CircleCI builds using mochify would suddenly stop running and instead timeout showing:
(node:173) UnhandledPromiseRejectionWarning: Error: Protocol error (Page.enable): Target closed.
at Promise (/home/circleci/repo/node_modules/puppeteer/lib/Connection.js:186:56)
at new Promise (<anonymous>)
at CDPSession.send (/home/circleci/repo/node_modules/puppeteer/lib/Connection.js:185:12)
at Function.create (/home/circleci/repo/node_modules/puppeteer/lib/Page.js:44:18)
at _pagePromise._sessionFactory.then.client (/home/circleci/repo/node_modules/puppeteer/lib/Target.js:43:32)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
which seems to be due to no --allow-chrome-as-root flag being passed (which I didn't have to do in v5, but that probably happened with the Puppeteer update).
This just adds a note to the README, making the existing section not only about Travis.
I found that with v6 all of my CircleCI builds using mochify would suddenly stop running and instead timeout showing:
which seems to be due to no
--allow-chrome-as-root
flag being passed (which I didn't have to do in v5, but that probably happened with the Puppeteer update).This just adds a note to the README, making the existing section not only about Travis.