BarredEwe / Prefire

🔥 A library based on SwiftUI Preview, for easy generation: Playbook view, Snapshot and Accessibility tests
Apache License 2.0
295 stars 19 forks source link

Processing test's function name #51

Closed BarredEwe closed 6 months ago

BarredEwe commented 6 months ago

Short description 📝

Spaces in #Preview name break the PreviewTests.generated file Fixing this issue: https://github.com/BarredEwe/Prefire/issues/48

Solution 📦

Added the removal of unnecessary characters using filter:

CharacterSet(arrayLiteral: "_") + CharacterSet.alphanumerics