diff --git a/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala b/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala index d4b976f7..796a7b51 100644 --- a/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala +++ b/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala @@ -127,7 +127,7 @@ class TapiroSuite extends munit.FunSuite { FileLayout.mapFromString(expectedLayout).map { case (path, content) => val filePath = path.split("/").foldLeft(projectRoot)(_.resolve(_)) - assertNoDiff(Files.readString(filePath.toNIO), content) + assertNoDiff(new String(Files.readAllBytes(filePath.toNIO)), content) } }