use beforeAll for test setup
@@ -12,6 +12,9 @@ class WhereUniqueSpec extends FlatSpec with Matchers with ApiSpecBase {
| email String @unique
|}""" }
+ override protected def beforeAll(): Unit = {
+ super.beforeAll()
+
database.setup(project)
server
@@ -26,6 +29,7 @@ class WhereUniqueSpec extends FlatSpec with Matchers with ApiSpecBase {
""",
project
)
+ }
// We cannot express that we expect exactly one field in the WhereUniqueInput in GraphQL, we therefore will error at runtime
// and hint at the correct way to use the api
