fix joiner-config-builder test
This commit is contained in:
@@ -82,11 +82,14 @@ export const toGraphQLSchema = <T extends any[]>(entities: T): string => {
|
||||
return entity
|
||||
})
|
||||
|
||||
const defaultMedusaSchema = `
|
||||
const defaultMedusaSchema =
|
||||
gqlSchemas.length > 0
|
||||
? `
|
||||
scalar DateTime
|
||||
scalar JSON
|
||||
directive @enumValue(value: String) on ENUM_VALUE
|
||||
`
|
||||
: ""
|
||||
|
||||
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!
|
||||
created_at: DateTime!
|
||||
updated_at: DateTime!
|
||||
|
||||
Reference in New Issue
Block a user