/create-node-app

All the boilerplate for a basic node app

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

create-node-app

build-url Code Coverage

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

Design decisions:

Testing

No mocks in unit tests

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

No extensive unit tests

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