Skip to content

Commit cda4775

Browse files
committed
wip
1 parent beb1240 commit cda4775

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Tests/ComposableArchitectureTests/StorePerceptionTests.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,10 @@ final class StorePerceptionTests: BaseTCATestCase {
4444
}
4545
}
4646
#if DEBUG && !os(visionOS)
47-
let previous = Perception.isPerceptionCheckingEnabled
48-
Perception.isPerceptionCheckingEnabled = true
49-
defer { Perception.isPerceptionCheckingEnabled = previous }
5047
XCTExpectFailure {
5148
render(FeatureView())
5249
} issueMatcher: {
53-
$0.compactDescription == """
54-
failed - Perceptible state was accessed but is not being tracked. Track changes to state by \
55-
wrapping your view in a 'WithPerceptionTracking' view. This must also be done for any \
56-
escaping, trailing closures, such as 'GeometryReader', `LazyVStack` (and all lazy \
57-
views), navigation APIs ('sheet', 'popover', 'fullScreenCover', etc.), and others.
58-
"""
50+
$0.compactDescription.contains("Perceptible state was accessed")
5951
}
6052
#endif
6153
}

0 commit comments

Comments
 (0)