- What component aspect are you testing?
- What should the feature do? What specific behavior requirement are you testing?
The `compose()` function takes any number of stamps (composable factory functions) and produces a new stamp.
To write this test, we’re going to work backwards from the end goal of any single test: To test a specific behavior requirement. In order for this test to pass, what specific behavior must the code produce?
I like to start by writing a string. Not assigned to anything. Not passed into any function. Just a clear focus on a specific requirement that the component must satisfy. In this case, we’ll start with the fact that the
... read the whole story at medium.com.