Testing Front End code
Testing front end code using rollup, tape-modern, and puppeteer.
These are just some notes for me to write down so that I have a good cheatsheet to set this up in the future.
Using rollup to build front end code is the way to go, it is small and provides tree shaking and the plugins are easy to manage. Using rollup to build a test bundle and using puppeteer to run the test bundle will create a chromium head browser and give you similar results as if you are running it in the browser.