With professor Ronen Amiel
You should write tests if you value your time:
Changing the code base doesn't require manually verifying that everything still works.
Deploying new versions requires little or no manual testing.
You'll have confidence your code still works after someone changed it.
It's easier for new team members to get into the code base.
Changing the code base doesn't require manually verifying that everything still works.
Deploying new versions requires little or no manual testing.
Test the interaction from the end user's point of view. In our case, we will use Puppeteer to control a browser and interact with our app.
Test specific modules in isolation. Great for covering a lot of different permutations that can take longer with integration tests.
Test a specific component in an environment that emulates a real browser (JSDOM). Great for testing different permutations in a component.
Write tests. Not too many. Mostly integration.
Guillermo Rauch - https://twitter.com/rauchg/status/807626710350839808
A Node.js library that provides an API for controlling a browser.
JavaScript implementation of many browser APIs that emulate a browser environment in a Node.js process.
JavaScript testing framework.
A zero-configuration build tool for developing apps in Wix.