We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c1a8f commit ec3b09aCopy full SHA for ec3b09a
Sources/MacroTesting/AssertMacro.swift
@@ -134,7 +134,11 @@ public func assertMacro(
134
let record = record ?? SnapshotTestingConfiguration.current?.record
135
#endif
136
withSnapshotTesting(record: record) {
137
- let macros = macros ?? MacroTestingConfiguration.current.macros
+ #if canImport(Testing)
138
+ let macros = macros ?? MacroTestingConfiguration.current.macros ?? Test.current?.macros
139
+ #else
140
+ let macros = macros ?? MacroTestingConfiguration.current.macros
141
+ #endif
142
guard let macros, !macros.isEmpty else {
143
recordIssue(
144
"""
0 commit comments