Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Think about upcoming built-in snapshot testing #3

Open
hildjj opened this issue Jun 27, 2024 · 0 comments
Open

Think about upcoming built-in snapshot testing #3

hildjj opened this issue Jun 27, 2024 · 0 comments

Comments

@hildjj
Copy link
Contributor

hildjj commented Jun 27, 2024

See: https://nodejs.org/api/test.html#snapshot-testing

Added in v22.3.0, node will eventually have snapshot testing built-in. There are a couple of things this library could do:

  • Track changes to these experimental interfaces
  • Provide a polyfill for earlier versions of node to ease the transition
  • Generate the exact same format as node (plain JSON at the moment), so snapshots pass in the future
  • Provide an additional snapshot formatter that uses serialize-json or cbor2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant