mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
18 lines
438 B
Swift
18 lines
438 B
Swift
@_spi(Internals) @_spi(Logging) import ComposableArchitecture
|
|
import XCTest
|
|
|
|
class BaseTCATestCase: XCTestCase {
|
|
override func tearDown() async throws {
|
|
try await super.tearDown()
|
|
let description = "\(self)"
|
|
_cancellationCancellables.withValue {
|
|
XCTAssertEqual($0.count, 0, description)
|
|
$0.removeAll()
|
|
}
|
|
await MainActor.run {
|
|
Logger.shared.isEnabled = false
|
|
Logger.shared.clear()
|
|
}
|
|
}
|
|
}
|