jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
893 stars 158 forks source link

Store screenshot in the same directory as component is? #268

Open vladislavkovaliov opened 7 months ago

vladislavkovaliov commented 7 months ago

Hi,

is possible to store screenshot on the same directory where the component is?

Example:

image

I tryied to play with customSnapshotsDir but it's only define directory.

Maybe there is way to pass template as <roorDid>/src/components/<componentName>screenshot for instance?

simonsmith commented 7 months ago

Hey,

That feature doesn't exist currently, but it seems like it could be a good addition

vladislavkovaliov commented 7 months ago

Do i need to rewrite as feature request my issue? Who can I ask about that?

simonsmith commented 7 months ago

Oh sorry, I didn't realise what repo this was 😄

Can you add it to https://github.com/simonsmith/cypress-image-snapshot, this is my maintained fork