Jest/Puppeteer: How can I prevent javascript errors from third party scripts from failing tests? I have built a cookie consent manager open source project.