Repository Public License
1import Foundation23/// Locations inside the repository, resolved from this file's path.4enum ReferencePaths {5 /// `<repo>/` — this file lives in `<repo>/Packages/NavigatorKit/Tests/LunarDesignTests/`.6 /// `LUNAR_REPO_ROOT` overrides it when the tests are built from another location.7 static let repositoryRoot: URL = {8 if let override = ProcessInfo.processInfo.environment["LUNAR_REPO_ROOT"], !override.isEmpty {9 return URL(fileURLWithPath: override, isDirectory: true)10 }11 return URL(fileURLWithPath: #filePath)12 .deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent()13 .deletingLastPathComponent().deletingLastPathComponent()14 }()1516 static let designSystem = repositoryRoot.appendingPathComponent("DesignSystem", isDirectory: true)17 static let reference = designSystem.appendingPathComponent("reference", isDirectory: true)18}19