diff --git a/doc/testing.md b/doc/testing.md index 48e5a82f91..4ecd2b165a 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -42,9 +42,10 @@ val e = sttp.tapir.endpoint Convert any endpoint to `SttpBackendStub`: ```scala mdoc:silent +import sttp.client3.Identity import sttp.client3.monad.IdMonad -val backend = SttpBackendStub +val backend: SttpBackendStub[Identity, Any] = SttpBackendStub .apply(IdMonad) .whenRequestMatchesEndpoint(e) .thenSuccess(ResponseWrapper(1.0)) @@ -57,7 +58,7 @@ effect can be used): import sttp.client3.Identity import sttp.client3.monad.IdMonad -val anotherBackend = SttpBackendStub +val anotherBackend: SttpBackendStub[Identity, Any] = SttpBackendStub .apply(IdMonad) .whenRequestMatchesEndpointThenLogic(e.serverLogic[Identity](_ => Right(ResponseWrapper(1.0)))) ``` diff --git a/project/plugins.sbt b/project/plugins.sbt index eb521406e2..48f90b4e03 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,7 +5,7 @@ addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-browser-tes //addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1") addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.0.1") addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.5.1") -addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24") +addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.0") addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.0") addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0")