Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✔ TDD - NodeJS, Jest & Typescript

📃 Principles

🤢 Anti-Patterns & Code Smells

  • Speculative Generality
  • God Class
  • Divergent Change
  • Blank Lines
  • High Coupling
  • Improper Instantiation (It's not a literary term)
  • Code Testing in Production (It's not a literary term)
  • Duplicate Code
  • Shotgun Surgery
  • Long Parameter List
  • Primitive Obsession
  • Bad Variable Naming

🤗 Design Patterns & Principles & Conventions

  • (SRP) Single Responsability
  • (LSP) Liskov Substitution
  • (DIP) Dependency Inversion
  • (AAA) Arrange, Act, Assert
  • (DI) Dependency Injection
  • (YAGNI) You Ain't Gonna Need It
  • (SUT) System Under Test (Code convention)
  • Test Doubles (Mock, Stub & Spy)
  • Repository Pattern
  • Strategy Pattern
  • Factory Pattern
  • Clean Code

🧐 Principles to check

  • Value Objects
  • Repository
  • Red/Green Refactor
  • Small Commits
  • Dublês de teste: Mock, stub, dummy, fake e spy

About

Learning TDD with Typescript and Jest. The focus in this case was everything that surrounds Clean Architecture, Best Pratices, Design Patterns and TDD. Project based on a Live Coding with @diego3g & @rmanguinho.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages