8. The Three Laws of TDD
» You may not write production code until you have
written a failing test.
» You may not write more of a test than is sufficient
to fail.
» You may not write more production code than is
sufficient to pass the current failing test.
9. Three things about TDD
» Writing tests in React is easy.
» Test driven development (writing tests before
code) is easy too.
» This is an arbitrary third thing as we need to
always have three things.
10.
11. Specs for next component
» Must show a button “Upgrade now” if user is free
» Must show a button “Extend membership” is user
is paid
» Should Not render a blank button