hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.8K
active users

Stephen John Anderson

I like this, it mirrors my practice. I don’t think this is shared widely, based both on tests I’ve seen in the wild, and the fact that I had to work it out for myself the hard way.

One nuance I’d like to add is: every bit of output data you assert about should be derived from something in your test setup. This is about legibility and comprehension. “X in -> Y out, because of Z”. When you use hidden values, all you see in the test is “Y out, because Z”


jaywhy13.hashnode.dev/tests-yo

Perspective Unspoken · Tests you love to read, write and changeBy Jean-Mark Wright