Skip to content

Commit 7b0bbba

Browse files
committed
Add an NB to @_implementationOnly import.
1 parent c1ad883 commit 7b0bbba

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Sources/SnapshotTesting/AssertSnapshot.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import XCTest
22

33
#if canImport(Testing)
4+
// NB: We are importing only the implementation of Testing because that framework is not available
5+
// in Xcode UI test targets.
46
@_implementationOnly import Testing
57
#endif
68

Sources/SnapshotTesting/Internal/RecordIssue.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import XCTest
22

33
#if canImport(Testing)
4+
// NB: We are importing only the implementation of Testing because that framework is not available
5+
// in Xcode UI test targets.
46
@_implementationOnly import Testing
57
#endif
68

Sources/SnapshotTesting/SnapshotsTestTrait.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#if canImport(Testing)
2+
// NB: We are importing only the implementation of Testing because that framework is not available
3+
// in Xcode UI test targets.
24
@_implementationOnly import Testing
35

46
@_spi(Experimental)

0 commit comments

Comments
 (0)