“The snapshot artifact should be committed alongside code changes. We use pretty-format to make snapshots human-readable during code review. On subsequent test runs Jest will simply compare the rendered output with the previous snapshot. If they match, the test will pass. If they don't match, either…”— Christoph Pojer, facebook.github.ioTagged: React, TDD, Jest, Testing, Frontend