Build what differentiates you. Buy what doesn't. Your product is your business. Your testing infrastructure is not.
If you're considering PuppeteerSharp for PDF generation, here's the version of the story that doesn't show up in the "getting started" docs.