Step One: Watch Writing Testable JavaScript - Rebecca Murphey from Full Frontal 2012 (award for worst conference name ever?)
Step Three: Consider the four responsibilities that Rebecca lists for client side code (hint: they're color coded).
- I was surprised by seeing the 'application state' category. This is not something I considered when thinking about components to test.
Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?
- I would say I had clear intention of testing the 'data/server communication' category, as well as set up. I feel like the 'presentation & interaction' category would be how I would think of integration tests (I felt this video was referring only to unit tests). The 'application state' category I only considered rarley if ever.
Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.
👍