Skip to content

Commit 74b3709

Browse files
authored
Import only the implementation of Testing. (#903)
1 parent c02e52b commit 74b3709

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/SnapshotTesting/AssertSnapshot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import XCTest
22

33
#if canImport(Testing)
4-
import Testing
4+
@_implementationOnly import Testing
55
#endif
66

77
/// Enhances failure messages with a command line diff tool expression that can be copied and pasted

Sources/SnapshotTesting/Internal/RecordIssue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import XCTest
22

33
#if canImport(Testing)
4-
import Testing
4+
@_implementationOnly import Testing
55
#endif
66

77
var isSwiftTesting: Bool {

Sources/SnapshotTesting/SnapshotsTestTrait.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if canImport(Testing)
2-
import Testing
2+
@_implementationOnly import Testing
33

44
@_spi(Experimental)
55
extension Trait where Self == _SnapshotsTestTrait {

0 commit comments

Comments
 (0)