This recently released library looks perfect for this. https://github.com/smooth-code/jest-puppeteer
We'll be using example sites as integration tests i.e. building them in Docker containers against PRs and checking there's no build errors. We should also write UI tests against the builds.