How to change snapshots folder location? is it possible? #559
Replies: 4 comments
-
I've used #filePath.replace to change the directory All other testclasses inheritance from SnapshotTestCase
Using swift 5, SnapshotTesting 1.8.2 |
Beta Was this translation helpful? Give feedback.
-
@GerritPost where do you use this variable? on assertSnapshot function? |
Beta Was this translation helpful? Give feedback.
-
the assertSnapshot receives a StaticString parameters, so I am not able to use replacing functions because it returns String object. Which version of Swift and of this lib are you using? @GerritPost |
Beta Was this translation helpful? Give feedback.
-
Updated the original answer, it was missing some imports :) Hope this helps you |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions