diff --git a/Sources/SnapshotTesting/AssertSnapshot.swift b/Sources/SnapshotTesting/AssertSnapshot.swift index a521ca96..8837fd9d 100644 --- a/Sources/SnapshotTesting/AssertSnapshot.swift +++ b/Sources/SnapshotTesting/AssertSnapshot.swift @@ -1,6 +1,8 @@ import XCTest #if canImport(Testing) + // NB: We are importing only the implementation of Testing because that framework is not available + // in Xcode UI test targets. @_implementationOnly import Testing #endif diff --git a/Sources/SnapshotTesting/Internal/RecordIssue.swift b/Sources/SnapshotTesting/Internal/RecordIssue.swift index 58c22184..a8dad29b 100644 --- a/Sources/SnapshotTesting/Internal/RecordIssue.swift +++ b/Sources/SnapshotTesting/Internal/RecordIssue.swift @@ -1,6 +1,8 @@ import XCTest #if canImport(Testing) + // NB: We are importing only the implementation of Testing because that framework is not available + // in Xcode UI test targets. @_implementationOnly import Testing #endif diff --git a/Sources/SnapshotTesting/SnapshotsTestTrait.swift b/Sources/SnapshotTesting/SnapshotsTestTrait.swift index ab8c1801..95c4b791 100644 --- a/Sources/SnapshotTesting/SnapshotsTestTrait.swift +++ b/Sources/SnapshotTesting/SnapshotsTestTrait.swift @@ -1,4 +1,6 @@ #if canImport(Testing) + // NB: We are importing only the implementation of Testing because that framework is not available + // in Xcode UI test targets. @_implementationOnly import Testing @_spi(Experimental)