-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
As suggested here in this issue #62
It would be really useful to have customSnapshotsDir specified as function, in order to have much more flexibility over the way snapshots are stored, and make it possible to generate path on the fly depending on testPath, etc.
{ customSnapshotsDir: ({currentTestName, testPath}) => buildCustomSnapshotDirOnTheFly(currentTestName, testPath) }In my usecase, we have our own framework with our React components. There are many components, and I would like to get all the snapshots stored in the same directory, with a structure identical to that of the framework. Something that would look like this:
root/
├─ snapshots/
│ ├─ inputs/
│ │ ├─ button/
│ │ │ ├─ button-snapshot.png
│ │ ├─ inputNumber/
│ │ │ ├─ inputNumber-snapshot.png
A commit was submitted a few years ago : goverdhan07@0277834
What do you think?
MrMeison
Metadata
Metadata
Assignees
Labels
No labels