Skip to content

Commit

Permalink
Add an NB to @_implementationOnly import.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Sep 10, 2024
1 parent c1ad883 commit 7b0bbba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SnapshotTesting/AssertSnapshot.swift
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions Sources/SnapshotTesting/Internal/RecordIssue.swift
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions Sources/SnapshotTesting/SnapshotsTestTrait.swift
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7b0bbba

Please sign in to comment.