Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Coding/Code Quality/Code Test/
Snapshot Test
Search

Snapshot Test

Creator
Creator
Seonglae Cho
Created
Created
2023 Jan 13 20:9
Editor
Editor
Seonglae Cho
Edited
Edited
2023 Jul 8 19:16
Refs
Refs
 
 
 
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.
What if writing tests was a joyful experience?
https://blog.janestreet.com/the-joy-of-expect-tests
What if writing tests was a joyful experience?
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.
Snapshot Testing · Jest
https://jestjs.io/docs/snapshot-testing
Snapshot Testing · Jest
 

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Coding/Code Quality/Code Test/
Snapshot Test
Copyright Seonglae Cho