fix joiner-config-builder test
This commit is contained in:
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!
|
||||||
|
|||||||
Reference in new issue
Block a user