Jeff Morrison: JavaScript Unit Testing with Jest [JSConf2014]

preview_player
Показать описание
A dive in to how we use Jest to unit test our JavaScript at Facebook, why unit testing should be as easy and painless as possible, and how to make it that easy.
Рекомендации по теме
Комментарии
Автор

Auto mocking dependencies by default -- that's awesome!! Thanks.

NullMcNull
Автор

This is just writing fragile mock tests with less explicit mock setup code.

If you mock by default you wouldn't find the showcased bug, so how is it better?

'runAllTimers()' looks like it would use sinon.useFakeTimers() under the covers. Nothing new.

thegoldenhours
visit shbcf.ru