Skip to content

Commit 197da77

Browse files
authored
Merge pull request #98 from cashapp/jw/deprecate/2022-07-26
Deprecate testMolecule
2 parents 4285cc9 + 1281681 commit 197da77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

molecule/molecule-testing/src/main/kotlin/app/cash/molecule/testing/moleculeTesting.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ fun <T> testMolecule(
5252
) = testMolecule(body, timeoutMs.milliseconds, validate)
5353

5454
@ExperimentalCoroutinesApi
55+
@Deprecated(
56+
"""Use moleculeFlow or launchMolecule with an 'Immediate' clock and then use Turbine to test.
57+
58+
If you believe this is insufficient please let us know at https://github.com/cashapp/molecule/issues/97.""",
59+
)
5560
fun <T> testMolecule(
5661
body: @Composable () -> T,
5762
timeout: Duration = 1.seconds,

0 commit comments

Comments
 (0)