mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* add shouldNotifyObservers support to ObservableState * update tests * move shouldNotifyObservers logic into ObservationState * fix test for macro change * Fix test * wip * update xcode on ci * wip * wip * wip * wip --------- Co-authored-by: Brandon Williams <mbrandonw@hey.com> Co-authored-by: Stephen Celis <stephen@stephencelis.com>
25 lines
600 B
Swift
25 lines
600 B
Swift
#if canImport(ComposableArchitectureMacros)
|
|
import ComposableArchitectureMacros
|
|
import MacroTesting
|
|
import SwiftSyntaxMacros
|
|
import SwiftSyntaxMacrosTestSupport
|
|
import XCTest
|
|
|
|
class MacroBaseTestCase: XCTestCase {
|
|
override func invokeTest() {
|
|
MacroTesting.withMacroTesting(
|
|
record: .failed,
|
|
macros: [
|
|
ObservableStateMacro.self,
|
|
ObservationStateTrackedMacro.self,
|
|
ObservationStateIgnoredMacro.self,
|
|
PresentsMacro.self,
|
|
ViewActionMacro.self,
|
|
]
|
|
) {
|
|
super.invokeTest()
|
|
}
|
|
}
|
|
}
|
|
#endif
|