@@ -83,11 +83,9 @@ describe('Type System: Scalars', () => {
8383 } ,
8484 } ) ;
8585
86- // @ts -expect-error FIXME: TS Conversion
8786 expect ( scalar . parseLiteral ( parseValue ( 'null' ) ) ) . to . equal (
8887 'parseValue: null' ,
8988 ) ;
90- // @ts -expect-error FIXME: TS Conversion
9189 expect ( scalar . parseLiteral ( parseValue ( '{ foo: "bar" }' ) ) ) . to . equal (
9290 'parseValue: { foo: "bar" }' ,
9391 ) ;
@@ -335,6 +333,7 @@ describe('Type System: Objects', () => {
335333 const objType = new GraphQLObjectType ( {
336334 name : 'SomeObject' ,
337335 fields : {
336+ // TODO ts-expect-error (must not be undefined)
338337 f : undefined ,
339338 } ,
340339 } ) ;
@@ -357,7 +356,7 @@ describe('Type System: Objects', () => {
357356 it ( 'rejects an Object type with a field function that returns incorrect type' , ( ) => {
358357 const objType = new GraphQLObjectType ( {
359358 name : 'SomeObject' ,
360- // @ts -expect-error FIXME: TS Conversion
359+ // @ts -expect-error (Wrong type of return)
361360 fields ( ) {
362361 return [ { field : ScalarType } ] ;
363362 } ,
@@ -397,7 +396,7 @@ describe('Type System: Objects', () => {
397396 const objType = new GraphQLObjectType ( {
398397 name : 'SomeObject' ,
399398 fields : { } ,
400- // @ts -expect-error FIXME: TS Conversion
399+ // @ts -expect-error (Expected interfaces to return array)
401400 interfaces ( ) {
402401 return { } ;
403402 } ,
@@ -411,7 +410,7 @@ describe('Type System: Objects', () => {
411410 const objType = new GraphQLObjectType ( {
412411 name : 'SomeObject' ,
413412 fields : {
414- // @ts -expect-error FIXME: TS Conversion
413+ // @ts -expect-error (Expected resolve to be a function)
415414 field : { type : ScalarType , resolve : { } } ,
416415 } ,
417416 } ) ;
@@ -425,7 +424,7 @@ describe('Type System: Objects', () => {
425424 const objType = new GraphQLObjectType ( {
426425 name : 'SomeObject' ,
427426 fields : {
428- // @ts -expect-error FIXME: TS Conversion
427+ // @ts -expect-error (Expected resolve to be a function)
429428 field : { type : ScalarType , resolve : 0 } ,
430429 } ,
431430 } ) ;
@@ -500,7 +499,7 @@ describe('Type System: Interfaces', () => {
500499 const objType = new GraphQLInterfaceType ( {
501500 name : 'AnotherInterface' ,
502501 fields : { } ,
503- // @ts -expect-error FIXME: TS Conversion
502+ // @ts -expect-error (Expected Array return)
504503 interfaces ( ) {
505504 return { } ;
506505 } ,
@@ -698,6 +697,7 @@ describe('Type System: Enums', () => {
698697 ( ) =>
699698 new GraphQLEnumType ( {
700699 name : 'SomeEnum' ,
700+ // TODO ts-expect-error (must not be null)
701701 values : { FOO : null } ,
702702 } ) ,
703703 ) . to . throw (
@@ -796,7 +796,7 @@ describe('Type System: Input Objects', () => {
796796 const inputObjType = new GraphQLInputObjectType ( {
797797 name : 'SomeInputObject' ,
798798 fields : {
799- // @ts -expect-error FIXME: TS Conversion
799+ // @ts -expect-error (Input fields cannot have resolvers)
800800 f : { type : ScalarType , resolve : dummyFunc } ,
801801 } ,
802802 } ) ;
@@ -809,7 +809,7 @@ describe('Type System: Input Objects', () => {
809809 const inputObjType = new GraphQLInputObjectType ( {
810810 name : 'SomeInputObject' ,
811811 fields : {
812- // @ts -expect-error FIXME: TS Conversion
812+ // @ts -expect-error (Input fields cannot have resolvers)
813813 f : { type : ScalarType , resolve : { } } ,
814814 } ,
815815 } ) ;
@@ -843,7 +843,9 @@ describe('Type System: List', () => {
843843 expectList ( String ) . to . throw (
844844 'Expected [function String] to be a GraphQL type.' ,
845845 ) ;
846+ // TODO ts-expect-error (must provide type)
846847 expectList ( null ) . to . throw ( 'Expected null to be a GraphQL type.' ) ;
848+ // TODO ts-expect-error (must provide type)
847849 expectList ( undefined ) . to . throw ( 'Expected undefined to be a GraphQL type.' ) ;
848850 } ) ;
849851} ) ;
@@ -874,9 +876,11 @@ describe('Type System: Non-Null', () => {
874876 expectNonNull ( String ) . to . throw (
875877 'Expected [function String] to be a GraphQL nullable type.' ,
876878 ) ;
879+ // TODO ts-expect-error (must provide type)
877880 expectNonNull ( null ) . to . throw (
878881 'Expected null to be a GraphQL nullable type.' ,
879882 ) ;
883+ // TODO ts-expect-error (must provide type)
880884 expectNonNull ( undefined ) . to . throw (
881885 'Expected undefined to be a GraphQL nullable type.' ,
882886 ) ;
0 commit comments