From 328d694fb81299b7a630f6a0af0cf95b7b54760e Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Wed, 22 Apr 2026 03:48:28 -0700 Subject: [PATCH] Fix Ticker @implicitNotFound message to reference testkit-available API The previous message pointed users at `ticked { implicit ticker => }`, which is defined in the internal tests module (tests/shared/src/test/scala/cats/ effect/Runners.scala) and is not visible to downstream users of the public testkit artifact. Replace it with an instruction that uses the constructor already exported from testkit. Closes #1875. --- .../src/main/scala/cats/effect/testkit/TestInstances.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala b/testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala index e85a143a3e..b481871fc1 100644 --- a/testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala +++ b/testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala @@ -253,7 +253,7 @@ trait TestInstances extends ParallelFGenerators with OutcomeGenerators with Sync } @implicitNotFound( - "could not find an instance of Ticker; try using `in ticked { implicit ticker =>`") + "could not find an instance of Ticker; try declaring one with `implicit val ticker: Ticker = Ticker()`") case class Ticker(ctx: TestContext = TestContext()) }