mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
23 stars 25 forks source link

Sort component snapshots into directories #2146

Open gd2910 opened 1 month ago

gd2910 commented 1 month ago

Summary

As the number of snapshots builds it's becoming harder to find the images needed in the image-diff/baseline directory, prepending a snapshot tests name with the component name will sort images into their respective directories.

ie name: "accordion/expanded"

This could also be used further with more complex components;

ie name: "accordion/single/expanded"

💬 Description

rename all snapshot tests to prepend with a directory name, see image

image

ad9242 commented 1 month ago

on hold until at least after v3 released. this will be much easier to implement\less conflicts when there are not 2 versions to keep in sync