News for hackers. Stuff that matters.
Re:What if writing tests was a joyful experience? by onion2k on Thursday January 12, 2023 @06:44AM (#34352131)
I think what they've done is implemented a way of doing snapshot testing by putting the snapshot data in the test itself. In snapshot testing you just cache the result of a code block and use that cached data to check the code produces the same output as it did when you knew it worked. Putting the snapshot inline in the test makes it a lot easier to read.

There are no comments on this comment yet.