Debug Jest Tests

preview_player
Показать описание
Sometimes it's just really nice to step through your code line-by-line. Here we'll cover how you can run your jest tests in Chrome's DevTools using node --inspect-brk.

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

"debugger" was the key! Man, I didn't know about that. Otherwise it was nearly impossible to use the native tools to put a break point in your code. Normally I pause on uncaught or caught exceptions but jest has 100s of caught exceptions & it masks all the uncaught's by the test itself.

UseLogicPlease
Автор

Hi, How can we debug jest test cases built on typescript and babel?

ashishraghav
Автор

node --inspect-brk --runInBand --watch

KentCDodds-vids