Open nishant-labs opened 6 years ago
I would also like to see inline, formatted snapshots. I doubt this will be added without outside contribution, though.
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.
First of all thanks for this great extension.
I am requesting a feature which will format snapshot in the viewer with syntax highlighting.
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