-
I like TAP and I like snapshot testing, so I've been putting together a little helper so I can do snapshot tests with TAP
-
Today I got the code for the initial version done, gotta do tests and docs next.
-
People's assumption of snapshot testing is that it's just for HTML or React, but in reality you can use it for any serializable object.
-
I've used pretty-format for the most common serialization, but made sure to allow for a serializer to be passed in as an option
-
That way, if you have a custom object, you can serialize it however you want.
-
I seem to write modules without running the code. I ran a little example and had a couple of misspellings but it worked after that
-
We'll see how it holds up when I get some tests done.