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

How to use .prefire.yml with Xcode project? #64

Closed bill-florio closed 4 months ago

bill-florio commented 5 months ago

Context 🕵️‍♀️

Hi! I am new to Prefire and it is very nice. But I got an issue when snapshot with environmentObject

Screenshot 2024-06-20 at 7 06 36 PM

What 🌱

I tried

  - imports:
      - SpeedManagerModule

but does not fixed the issue, seems like .prefire.yml is not read when building the test

bill-florio commented 5 months ago

fixed: checked static func findTestedTarget(for target: Target) -> SwiftSourceModuleTarget? I founded my project's folder has a space. Rename the folder and fixed