Document how to use with puppeteer?
See original GitHub issue- Version: 12.13.0
- Platform: Darwin Stevens-Mac-mini.local 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64
Previously, with nyc, I was using puppeteer-to-istanbul, but now I’m not sure what to do. c8 needs to receive the reports from puppeteer somehow.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Puppeteer | Puppeteer
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode by...
Read more >Puppeteer documentation - DevDocs
Puppeteer 7.1.0 API documentation with instant search, offline support, keyboard shortcuts, mobile version, and more.
Read more >Headless Chrome ( Puppeteer ) - how to get access to ...
Getting an ElementHandle for the document body by calling the page.$ method. Adding a class to the body by calling its classList.add method...
Read more >Web Scraping with a Headless Browser: A Puppeteer Tutorial
In this article, Toptal Freelance JavaScript Developer Nick Chikovani shows how easy it is to perform web scraping using a headless browser.
Read more >Get a DOM element using Puppeteer - Hello World Master
Learn how to get information from DOM elements retrieved from using Puppeteer, Google's open source browser automation tool.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to get
puppeteer
working withc8
, thanks to https://github.com/puppeteer/puppeteer/pull/6454! I wanted to leave the code I used here for anyone else who may want to stick withpuppeteer
. The trick is to set theincludeRawScriptCoverage
totrue
in yourstartJSCoverage()
options, and then write its output to JSON files. Huge thanks to @bricss for providing a foundation for me to work off of!The code I wrote is as follows:
@queengooborg this is slick, we should document how to do this 😄