Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update munit to 1.0.0 #251

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ val grackleVersion = "0.19.0"
val http4sVersion = "0.23.27"
val kindProjectorVersion = "0.13.2"
val log4catsVersion = "2.7.0"
val munitCatsEffectVersion = "1.0.7"
val munitVersion = "0.7.29"
val munitCatsEffectVersion = "2.0.0"
val munitVersion = "1.0.0"
val natchezVersion = "0.3.5"
val http4sBlazeVersion = "0.23.16"
val http4sJdkHttpClientVersion = "0.9.1"
Expand Down Expand Up @@ -42,6 +42,6 @@ lazy val core = project
"org.scalameta" %% "munit" % munitVersion % Test,
"org.typelevel" %% "grackle-circe" % grackleVersion % Test,
"org.typelevel" %% "log4cats-slf4j" % log4catsVersion % Test,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
"org.typelevel" %% "munit-cats-effect" % munitCatsEffectVersion % Test,
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import io.circe.Encoder
import io.circe.Json
import io.circe.JsonObject
import munit.CatsEffectSuite
import munit.catseffect.IOFixture
import org.http4s.blaze.server.BlazeServerBuilder
import org.http4s.headers.Authorization
import org.http4s.jdkhttpclient.JdkHttpClient
Expand Down Expand Up @@ -95,7 +96,7 @@ abstract class BaseSuite extends CatsEffectSuite:
_ <- Resource.make(sc.connect() *> sc.initialize(ps))(_ => sc.terminate() *> sc.disconnect())
yield sc

private lazy val serverFixture: Fixture[Server] =
private lazy val serverFixture: IOFixture[Server] =
ResourceSuiteLocalFixture("server", server)

override def munitFixtures =
Expand Down Expand Up @@ -173,4 +174,3 @@ abstract class BaseSuite extends CatsEffectSuite:
case Left(ResponseException(es, _)) => assertEquals(messages.toList, es.toList.map(_.message)).pure[IO]
case Left(other) => IO.raiseError(other)
case Right(a) => fail(s"Expected failure, got $a")

Loading