jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
890 stars 159 forks source link

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

Open vladislavkovaliov opened 6 months ago

vladislavkovaliov commented 6 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 6 months ago

Hey,

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

vladislavkovaliov commented 6 months ago

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

simonsmith commented 6 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