Specifically, the relationship between the setup functions and the test context could be demonstrated more effectively. Also, it would be helpful to mention "fixtures" since that's the role that these macros fill, and mentioning that term may help others coming from other languages/frameworks may understand these functions more quickly if that name is used. Lastly, a few more examples to clarify the output format of these blocks (i.e. it is a bit strange to allow a map, or a :ok, map shape and the downstream functions don't care.
Specifically, the relationship between the
setup
functions and the testcontext
could be demonstrated more effectively. Also, it would be helpful to mention "fixtures" since that's the role that these macros fill, and mentioning that term may help others coming from other languages/frameworks may understand these functions more quickly if that name is used. Lastly, a few more examples to clarify the output format of these blocks (i.e. it is a bit strange to allow a map, or a:ok, map
shape and the downstream functions don't care.