diff --git a/Sources/MacroTesting/AssertMacro.swift b/Sources/MacroTesting/AssertMacro.swift index 604ba6c..a67ddf9 100644 --- a/Sources/MacroTesting/AssertMacro.swift +++ b/Sources/MacroTesting/AssertMacro.swift @@ -10,7 +10,7 @@ import SwiftSyntaxMacros import XCTest #if canImport(Testing) - import Testing +@_implementationOnly import Testing #endif /// Asserts that a given Swift source string matches an expected string with all macros expanded. diff --git a/Sources/MacroTesting/Internal/RecordIssue.swift b/Sources/MacroTesting/Internal/RecordIssue.swift index 01c700d..2b9c36b 100644 --- a/Sources/MacroTesting/Internal/RecordIssue.swift +++ b/Sources/MacroTesting/Internal/RecordIssue.swift @@ -1,7 +1,7 @@ import XCTest #if canImport(Testing) - import Testing +@_implementationOnly import Testing #endif @_spi(Internals) diff --git a/Sources/MacroTesting/MacrosTestTrait.swift b/Sources/MacroTesting/MacrosTestTrait.swift index fad9e28..7d81ec6 100644 --- a/Sources/MacroTesting/MacrosTestTrait.swift +++ b/Sources/MacroTesting/MacrosTestTrait.swift @@ -2,7 +2,7 @@ import SnapshotTesting import SwiftSyntax import SwiftSyntaxMacros - import Testing + @_implementationOnly import Testing @_spi(Experimental) extension Trait where Self == _MacrosTestTrait {