message: chore: cleanup test code for GraphQL cache
diff: @@ -111,14 +111,12 @@ describe('GraphQLCache', () => {
  const schema = (await cache.getSchema(
  'testWithCustomDirectives',
  )) as GraphQLSchema;
  - expect(
  - wihtoutASTNode(schema.getDirective('customDirective')),
  - ).toMatchObject(
  + expect(wihtoutASTNode(schema.getDirective('customDirective'))).toEqual(
  + // objectContaining is used to pass this test without changing the code if more properties are added in GraphQLDirective class in the new version of graphql module.
  expect.objectContaining({
  args: [],
  description: undefined,
  - // TODO: failing now that tests are doing deep comparison
  - // isRepeatable: false,
  + isRepeatable: false,
  locations: ['FIELD'],
  name: 'customDirective',
  }),
  @@ -127,14 +125,12 @@ describe('GraphQLCache', () => {
  it('extend the schema with appropriate custom directive 2', async () => {
  const schema = (await cache.getSchema('testWithSchema')) as GraphQLSchema;
  - expect(
  - wihtoutASTNode(schema.getDirective('customDirective')),
  - ).toMatchObject(
  + expect(wihtoutASTNode(schema.getDirective('customDirective'))).toEqual(
  + // objectContaining is used to pass this test without changing the code if more properties are added in GraphQLDirective class in the new version of graphql module.
  expect.objectContaining({
  args: [],
  description: undefined,
  - // TODO: failing now that tests are doing deep comparison
  - // isRepeatable: false,
  + isRepeatable: false,
  locations: ['FRAGMENT_SPREAD'],
  name: 'customDirective',
  }),
  