diff --git a/codegen-sbt/src/sbt-test/compiletime-codegen/test-compile/modules/posts/src/test/scala/ValidateGraphQlSpec.scala b/codegen-sbt/src/sbt-test/compiletime-codegen/test-compile/modules/posts/src/test/scala/ValidateGraphQlSpec.scala index 2331183850..d7e2c04303 100644 --- a/codegen-sbt/src/sbt-test/compiletime-codegen/test-compile/modules/posts/src/test/scala/ValidateGraphQlSpec.scala +++ b/codegen-sbt/src/sbt-test/compiletime-codegen/test-compile/modules/posts/src/test/scala/ValidateGraphQlSpec.scala @@ -8,7 +8,9 @@ import caliban.tools._ object ValidateGraphQlSpec extends SnapshotTest { override val testName: String = "ValidateGraphQlSpec" - val outFolder = SnapshotTest.projectRoot.resolve("codegen-sbt/src/sbt-test/compiletime-codegen/test-compile/modules/posts/src/test/resources/") + val userDir: Path = Path.of(sys.props("user.dir")) + +// val outFolder : Path = SnapshotTest.projectRoot.resolve("codegen-sbt/src/sbt-test/compiletime-codegen/test-compile/modules/posts/src/test/resources/") override def spec = suite("Validate Postservice")( @@ -16,7 +18,11 @@ object ValidateGraphQlSpec extends SnapshotTest { val gqlApi = GraphQLApi.api val renderContent: String = s"${gqlApi.render}" - writeAndCompare(outFolder.resolve("postservice.graphql"), renderContent, "Render postservice") + println(s"userDir: ${userDir}") + + + + writeAndCompare(userDir.resolve("/test-compile/modules/posts/src/test/resources/postservice.graphql"), renderContent, "Render postservice") } ) } \ No newline at end of file