I recently needed to write some tests which made assertions on an API response which did not have fixtures (i.e. e2e tests). This meant I was testing types more than literal values.
The jest assertions were quite cumbersome and I found myself wanting to reach for OK Computer. e.g.
I recently needed to write some tests which made assertions on an API response which did not have fixtures (i.e. e2e tests). This meant I was testing types more than literal values.
The jest assertions were quite cumbersome and I found myself wanting to reach for OK Computer. e.g.
I expect the error output is better using the jest matchers, but perhaps a custom jest matcher could handle that?
With OK Computer you also get type inference