Current, the extend tries to require and modify the puppeteer module. However, I've found several use cases for using puppeteer-core to already-installed browsers and not require users to install an unnecessary version of chromium. One such example is when testing Electron apps.
It would be great if the extend helper could work with puppeteer-core as well. Currently, it hard-codes looking for puppeteer specifically. When it is not available, it errors. I did a quick check and it seems to work just fine with puppeteer-core. Perhaps it can be added as an extra libPrefix to check?
Current, the
extend
tries to require and modify thepuppeteer
module. However, I've found several use cases for usingpuppeteer-core
to already-installed browsers and not require users to install an unnecessary version of chromium. One such example is when testing Electron apps.It would be great if the
extend
helper could work with puppeteer-core as well. Currently, it hard-codes looking forpuppeteer
specifically. When it is not available, it errors. I did a quick check and it seems to work just fine with puppeteer-core. Perhaps it can be added as an extralibPrefix
to check?