What if writing tests was a joyful experience?
At Jane Street we use a pattern/library called "expect tests" that makes test-writing feel like a REPL session, or like exploratory programming in a Jupyter notebook-with feedback cycles so fast and joyful that it feels almost tactile. Having used them for some time now this is the only way I'd ever want to write tests.
https://blog.janestreet.com/the-joy-of-expect-tests

Snapshot Testing · Jest
Snapshot tests are a very useful tool whenever you want to make sure your UI does not change unexpectedly. A typical snapshot test case renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test.
https://jestjs.io/docs/snapshot-testing


Seonglae Cho