News for hackers. Stuff that matters.
Re:Idiomatic React Testing Patterns by amavisca on Wednesday July 13, 2016 @02:01PM (#12088277)
I prefer this style of component test and tend to bring in jQuery as a test dependency to remove some of the complexity of the assertions (I'm not always up to date on the current DOM APIs).

I find the instance method unit test a bit unsatisfying. I'm not going to call an instance method of a component from outside of that component (maybe someone else is doing this - I'm just not sure what the use case is), so why would I do that in my test? I want to integrate through the instance method by poking at the DOM rather than calling the method directly.

There are no comments on this comment yet.