I have a TypeScript project that uses Jest for unit tests and have just added Puppeteer to the mix with the intention to run some tests on the client. It works fine, unless I tr
you can do like this before you invoke the evaluate function :
evaluate
await page.exposeFunction("applyHdpiOverrides",applyHdpiOverrides); await page.exposeFunction("createHdpiCanvas",createHdpiCanvas);
and now your window will recognize these functions