vscode-jest icon indicating copy to clipboard operation
vscode-jest copied to clipboard

Feature request - Formatted snapshot

Open nishant-labs opened this issue 7 years ago • 3 comments

First of all thanks for this great extension.

I am requesting a feature which will format snapshot in the viewer with syntax highlighting.

  • HTML snapshot as an HTML page design(if possible use client CSS or just raw formatted HTML)
  • JSON snapshot as a JSON file format
  • Raw component snapshot - output of expect(renderedComponent).toMatchSnapshot();

This will benefit user in terms of readability of snapshot and provide realistic vew of what component is going to look (in case of html snapshot with CSS it will be like magic 😄)

We may add other snapshot variations...

Thanks for considering 🤞 Nishant Kumar Sinha

nishant-labs avatar Oct 04 '18 14:10 nishant-labs

I would also like to see inline, formatted snapshots. I doubt this will be added without outside contribution, though.

aleclarson avatar Nov 16 '18 13:11 aleclarson

Oh wow, check this out: https://marketplace.visualstudio.com/items?itemName=asvetliakov.snapshot-tools

Apparently https://github.com/asvetliakov/typescript-snapshots-plugin is the successor to "Snapshot tools". This one plugs into Typescript instead of VSCode.

aleclarson avatar Nov 16 '18 13:11 aleclarson

This issue has been inactive for over a year and has been marked as stale. It will be automatically closed in 30 days if no further activity occurs. Since significant changes have occurred in the codebase, please open a new issue with updated details if the problem still persists.

github-actions[bot] avatar Apr 10 '25 03:04 github-actions[bot]