using snapshot-diff, for example ref: - https://kentcdodds.com/blog/effective-snapshot-testing I found it by following the trail through these resources: - https://twitter.com/JavaScriptDaily/status/1234060818293166081 - https://kentcdodds.com/blog/make-your-test-fail