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 1cefdda commit 9c1a873
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "63d3b45dd249878a41c56274a748ca2c1c9c5230",
"version" : "1.17.1"
"revision" : "6d932a79e7173b275b96c600c86c603cf84f153c",
"version" : "1.17.4"
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions Sources/MacroTesting/AssertMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import SwiftSyntaxMacros
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/MacroTesting/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/MacroTesting/MacrosTestTrait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import SnapshotTesting
import SwiftSyntax
import SwiftSyntaxMacros
// 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 9c1a873

Please sign in to comment.