Basic node app to bootstrap new app development without having to reinstall crap
Contains:
- Code coverage + upload to codecov
- Travis pipeline
- Docker setup
- Prettier + ESLint base setup
Business logic should be decoupled enough from other modules that there's nothing to mock: code that calls other modules shouldn't contain business logic and should be tested by integration/e2e tests.
See Mocking is a Code Smell and Test Induced Design Damage
Unit tests should be reserved for business logic, otherwise they are just testing that code calls other code, which is an implementation detail and will cause test refactoring whenever the implementation changes. The goal is not 100% unit test coverage, it is 100% total test coverage