[deleted]
Re:React: Finally, a great server/client web stack
by rubiquity on Thursday January 23, 2014 @05:27PM
(#7111794)
I'd imagine it's something like: Don't put complex logic in React Components, put it somewhere else and test it there.
Re:React: Finally, a great server/client web stack
by lucaswoj on Thursday January 23, 2014 @05:36PM
(#7111886)
There aren't any library features for TDD per se but standard JavaScript testing practices work on React objects (barring some weirdness around autobound methods)
Re:React: Finally, a great server/client web stack
by tomhallett on Thursday January 23, 2014 @09:31PM
(#7113028)
I wrote a jasmine helper utility to tdd reactjs components. And I handle spying on functions which are autobound by react!
I just launched it last week, so I will be working on some screencasts to explain using it in further detail.