I recently read No excuses, write unit tests, which argues Unit Tests are Good and You Should Write Them. For the most part I strongly agree with their message, which is why I feel kinda bad criticizing the essay. They provide this as “an example of simple testing”: constadd=(...numbers) => { returnnumbers.reduce((acc, val) => { returnacc+val; }, 0); }; it('should add numbers', () => { constexpected=15; constactual=add(1, 2, 3, 4, 5); expect(actual).