Writing Node.js Unit Tests With Recorded Network Data

By wanderview.

View original

Excerpt: Automated unit tests are a wonderful thing. They help give you the confidence to make difficult changes and are your first line of defense against regressions. Unfortunately, however, unit tests typically only validate code against the same expectations and pre-conceived notions we used to write theā€¦