Closed
Description
What is the problem this feature will solve?
It would be useful to have snapshot testing as part of the built-in test runner or assertion library.
I am aware of earlier work on this, specifically the inclusion and then removal of assert.snapshot
as per #44466 and #46112.
I'm wondering if there's a consensus that snapshot testing should not live in Node core or if you would be open to an implementation without the shortcomings of the earlier one.
What is the feature you are proposing to solve the problem?
I would propose an implementation in Node core, which would play well with the built-in test runner
What alternatives have you considered?
The only real alternative at the moment would be using a different testing framework. I haven't considered whether snapshot testing could be implemented as a standalone library though.