Setting resetOnNavigation does work but because puppeteer-to-istanbul creates unique filenames for the source files, the generated reports show many instances of the same files instead of a combined coverage which is the most common use case.
My workaround is that I vendored in puppeteer-to-istanbul and made modifications so that it creates multiple out.json files and I removed the unique filename feature. That did the trick for me.
Originally posted by @arienkock in #45 (comment)
@arienkock
Setting
resetOnNavigationdoes work but becausepuppeteer-to-istanbulcreates unique filenames for the source files, the generated reports show many instances of the same files instead of a combined coverage which is the most common use case.My workaround is that I vendored in
puppeteer-to-istanbuland made modifications so that it creates multipleout.jsonfiles and I removed the unique filename feature. That did the trick for me.Originally posted by @arienkock in #45 (comment)
@arienkock