You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using swift-snapshot-testing for quite a while, but without Prefire. swift-snapshot-testing saved snapshots with for each view into separate folder:
We are using #Preview to specify name of a preview/snapshot like this:
#Preview("newUser") {
// my preview
}
This may lead to names being overlapped between multiple views and it actually already did happen in our project.
To avoid this we duplicate our view name into preview name like this:
#Preview("AuthView newUser") {
// my preview
}
That solves the issue, but creates unnecessary duplications of a view name in canvas previews.
Proposal π
I believe saving snapshot into folder named after source file name #Preview originated from can solve this issue:
Context π΅οΈββοΈ
We've been using swift-snapshot-testing for quite a while, but without Prefire. swift-snapshot-testing saved snapshots with for each view into separate folder:
What π±
Prefire saves all snapshots into single same folder, so resulting structure is like this:
We are using
#Preview
to specify name of a preview/snapshot like this:This may lead to names being overlapped between multiple views and it actually already did happen in our project.
To avoid this we duplicate our view name into preview name like this:
That solves the issue, but creates unnecessary duplications of a view name in canvas previews.
Proposal π
I believe saving snapshot into folder named after source file name
#Preview
originated from can solve this issue:The text was updated successfully, but these errors were encountered: