I did a little song-and-dance that sets up Puppeteer* , takes screenshots of your app (like, all the routes you care about), and then compares them to the “golden” ones. If they match, your test passes! Yes, it only works on Chrome. No, it’s not actually unit testing. Yes, it’s literally just counting pixels but you know what? It counts them in both a wide and a narrow viewport size and any testing is better than no testing at all; fight me.
Hey Laravel friends! 1000s of Ruby developers know and love Honeybadger. We recently attended our first Laracon, though, and OMG, you are all awesome. Naturally, we're rebuilding Honeybadger from scratch, just for you. Learn more here (sponsored link)