Skip to content

Commit

Permalink
test: adds new mutation to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilera committed Feb 6, 2025
1 parent 28e90c6 commit f5d4227
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/api/test/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const TYPES = [
'PickupAddress',
'MessageInfo',
'MessageFields',
'ICreateProductReview',
]

const QUERIES = [
Expand All @@ -69,7 +70,12 @@ const QUERIES = [
'sellers',
]

const MUTATIONS = ['validateCart', 'validateSession', 'subscribeToNewsletter']
const MUTATIONS = [
'validateCart',
'validateSession',
'subscribeToNewsletter',
'createProductReview',
]

let schema: GraphQLSchema

Expand Down
8 changes: 7 additions & 1 deletion packages/core/test/server/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const TYPES = [
'PickupAddress',
'MessageInfo',
'MessageFields',
'ICreateProductReview',
]

const QUERIES = [
Expand All @@ -73,7 +74,12 @@ const QUERIES = [
'sellers',
]

const MUTATIONS = ['validateCart', 'validateSession', 'subscribeToNewsletter']
const MUTATIONS = [
'validateCart',
'validateSession',
'subscribeToNewsletter',
'createProductReview',
]

describe('FastStore GraphQL Layer', () => {
describe('@faststore/api', () => {
Expand Down

0 comments on commit f5d4227

Please sign in to comment.