test harness: offscreen panel snapshots via SHOTDECK_SNAPSHOT_DIR
This commit is contained in:
@@ -4,6 +4,9 @@ import ShotdeckCore
|
||||
|
||||
// SwiftPM treats a file named main.swift as top-level code, which forbids `@main`.
|
||||
// App.main() is the equivalent entry point.
|
||||
if ProcessInfo.processInfo.environment["SHOTDECK_SNAPSHOT_DIR"] != nil {
|
||||
MainActor.assumeIsolated { PanelSnapshot.runIfRequested() }
|
||||
}
|
||||
ShotdeckApp.main()
|
||||
|
||||
struct ShotdeckApp: App {
|
||||
|
||||
Reference in New Issue
Block a user