fix joiner-config-builder test

This commit is contained in:
Pedro Guzman committed 2025-06-13 12:23:57 +02:00
1 parent 0fd0a0892b
commit 9e3b3667f8
2 files changed
+8 -2

No files matched your search

@@ -82,11 +82,14 @@ export const toGraphQLSchema = <T extends any[]>(entities: T): string => {
return entity return entity
}) })
const defaultMedusaSchema = ` const defaultMedusaSchema =
gqlSchemas.length > 0
? `
scalar DateTime scalar DateTime
scalar JSON scalar JSON
directive @enumValue(value: String) on ENUM_VALUE directive @enumValue(value: String) on ENUM_VALUE
` `
: ""
return defaultMedusaSchema + gqlSchemas.join("\n") return defaultMedusaSchema + gqlSchemas.join("\n")
} }
@@ -405,7 +405,10 @@ describe("joiner-config-builder", () => {
], ],
}) })
const schemaExpected = `type FulfillmentSet { const schemaExpected = `scalar DateTime
scalar JSON
directive @enumValue(value: String) on ENUM_VALUE
type FulfillmentSet {
id: ID! id: ID!
created_at: DateTime! created_at: DateTime!
updated_at: DateTime! updated_at: DateTime!