Skip to content

Commit

Permalink
Macro test fix (#111)
Browse files Browse the repository at this point in the history
* added conditional import

* added conditional import
  • Loading branch information
KazaiMazai authored Sep 11, 2024
1 parent ac8cb4e commit c1a963f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Tests/PureduxMacrosTests/InjectedStoreMacroTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Sergey Kazakov on 25/08/2024.
//

#if canImport(PureduxMacros)
import SwiftSyntaxMacros
import SwiftSyntaxMacrosTestSupport
import XCTest
Expand Down Expand Up @@ -42,3 +43,4 @@ final class InjectedStoreMacroTests: XCTestCase {
)
}
}
#endif
3 changes: 2 additions & 1 deletion Tests/PureduxTests/TestUtils/TestRootAppStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by Sergey Kazakov on 01/09/2024.
//

#if canImport(PureduxMacros)
import XCTest
@testable import Puredux
import SwiftUI
Expand All @@ -14,3 +14,4 @@ import PureduxMacros
extension Injected {
@InjectEntry var rootStore = StateStore<Int, Int>(0) { state, action in state += action }
}
#endif

0 comments on commit c1a963f

Please sign in to comment.