jest

  • React 16 rewrote how a component fails

    An error in one component used to blank the page. 16 unmounts the whole tree deliberately — and gives you the mechanism to stop it.

  • Jest snapshot tests age badly unless you read the diff

    A snapshot that fails is regenerated with -u, and after the third time that becomes reflex — at which point the test asserts that the output equals whatever…