Automated tests are one of the core principles for writing maintainable code. When we have tests, we can refactor code without worrying we might break existing code. They also, help us catch bugs that would otherwise end up in production. Good tests ...

Markdown supported · ⌘↵ to post
Great Article !
I think every new developer should read it
I'd add 'Make Zombie Testing'
Luís Soares
software developer
Nice article! My 2 cent: Usually, I don't agree with "Avoid magic numbers or strings". I wrote an article about it. I prefer DAMP and Evident Data (Kent Beck).
I'd do instead:
const userPosts = callToGetUserPosts(); expect(userPosts).toBe(1);which is a self-documenting single-liner.