Skip to content

Snapshot testing #48260

Description

@simoneb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    assertIssues and PRs related to the assert subsystem.feature requestIssues requesting new Node.js features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions