Skip to content

test: migrate test runner message tests to snapshot

Ref: https://github.com/nodejs/node/pull/47370#issuecomment-1493450296 this PR introduces an internal tool for snapshot testing. today we use python for that and regenerate snapshots manually.

this is not a full-blown snapshot testing solution and has a few limitations that can be resolved/improved in the future if we have any more use cases or if we want to re-introduce assert.snapshot:

  • it only accepts strings as an input
  • each snapshot file stores a single snapshot, multiple snapshot points require multiple files

Merge request reports

Loading