Closed Jack89ita closed 6 years ago
Hi. Currently there isn't. What is your usecase?
Well actually i've got 2 arrays: 1 for a set of devices and 1 for a set of urls. So it would be much clear for me to name the generated file with those array indexes (eg: desktop_agency_test.png, mobile_agency_test.png). Or even better change folder name (eg: desktop/agency_test.png, mobile/agency_test.png). Is it worth it? Thanks
It would be perfect, in that way i can dynamically change my path for every file! Thank you!
It is possible to configure the folder name for all images, but not
individually. I could add the option to provide a configuration object to
.toMatchImageSnapshot()
like this:
expect(...).toMatchImageSnapshot({ path: "path/to/file.png" })
would that suit your needs?
I'll see whether I can manage to do this today or tomorrow. Of course I'd also welcome a pull request :)
Ok thank you. Let me know when is done!
Implemented and published in 0.2.0.
Hi! First of all thank you for this amazing plugin. I would like to know if there's a option to change the default name of the generated .png file. Can you help me? Thanks