From a0d8b657192317cf31a3136dbcddfc7b2821a96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Zu=CC=88hlke?= Date: Fri, 26 Apr 2024 08:22:42 +0200 Subject: [PATCH] update munit to 1.0.0-RC1 changes because munit-diff is now an independent artifact: https://github.com/scalameta/munit/pull/756 * add dependency for munit-diff * adapt imports --- build.sbt | 3 ++- tests/shared/src/main/scala/munit/BaseFrameworkSuite.scala | 2 +- tests/shared/src/test/scala/munit/CustomPrinterSuite.scala | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 8fb8bdc..f8ad2da 100644 --- a/build.sbt +++ b/build.sbt @@ -123,7 +123,8 @@ lazy val munitScalacheck = crossProject(JSPlatform, JVMPlatform, NativePlatform) sharedSettings, libraryDependencies ++= Seq( "org.scalacheck" %%% "scalacheck" % "1.18.0", - "org.scalameta" %%% "munit" % "1.0.0-M12" + "org.scalameta" %%% "munit-diff" % "1.0.0-RC1", + "org.scalameta" %%% "munit" % "1.0.0-RC1" ) ) .jvmSettings( diff --git a/tests/shared/src/main/scala/munit/BaseFrameworkSuite.scala b/tests/shared/src/main/scala/munit/BaseFrameworkSuite.scala index 1d642d8..dbbcbc5 100644 --- a/tests/shared/src/main/scala/munit/BaseFrameworkSuite.scala +++ b/tests/shared/src/main/scala/munit/BaseFrameworkSuite.scala @@ -1,7 +1,7 @@ package munit +import munit.diff.console.AnsiColors import munit.internal.PlatformCompat -import munit.internal.console.AnsiColors import sbt.testing.Event import sbt.testing.EventHandler import sbt.testing.Logger diff --git a/tests/shared/src/test/scala/munit/CustomPrinterSuite.scala b/tests/shared/src/test/scala/munit/CustomPrinterSuite.scala index 610a9d1..fdeef04 100644 --- a/tests/shared/src/test/scala/munit/CustomPrinterSuite.scala +++ b/tests/shared/src/test/scala/munit/CustomPrinterSuite.scala @@ -1,9 +1,10 @@ package munit -import org.scalacheck.Prop.forAll +import munit.diff.Printer import munit.internal.console.Printers import org.scalacheck.Arbitrary.arbitrary import org.scalacheck.Prop +import org.scalacheck.Prop.forAll class CustomPrinterSuite extends FunSuite with ScalaCheckSuite {