Coding in Node & Javascript using TDD | TDD an Express App | Part 1

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I am never sure what to think of the different ways people approach TDD... e.g I try to do every little step, that way I break the habit of following the same approach I had done before. While you are doing the complete opposite; "I know what I want, fuck this, lets write one big fat test and write code". I wish this wasn't such a gray area ;(

Regarding to your inversion of control comments, it's not completely inversion of control. In this example you are just doing DI. Inversion of control needs to define a boundary(interface) that can be implemented. You probably know that, but I'm just clarifying in case a viewer does not.

14:17 You can use the mocked util from "ts-jest/utils"

anyhow, I'm glad there are more people promoting to be disciplined! :)

donnyroufs
Автор

this is like writing the code two times, you know that the code will pass anyway but you do the test to verify a working thing doesn't make since to me lol

nested
Автор

bt hw r yu so good in all tht please...?

NinoElsKill