@@ -83,11 +83,9 @@ describe('Type System: Scalars', () => {
83
83
} ,
84
84
} ) ;
85
85
86
- // @ts -expect-error FIXME: TS Conversion
87
86
expect ( scalar . parseLiteral ( parseValue ( 'null' ) ) ) . to . equal (
88
87
'parseValue: null' ,
89
88
) ;
90
- // @ts -expect-error FIXME: TS Conversion
91
89
expect ( scalar . parseLiteral ( parseValue ( '{ foo: "bar" }' ) ) ) . to . equal (
92
90
'parseValue: { foo: "bar" }' ,
93
91
) ;
@@ -335,6 +333,7 @@ describe('Type System: Objects', () => {
335
333
const objType = new GraphQLObjectType ( {
336
334
name : 'SomeObject' ,
337
335
fields : {
336
+ // TODO ts-expect-error (must not be undefined)
338
337
f : undefined ,
339
338
} ,
340
339
} ) ;
@@ -357,7 +356,7 @@ describe('Type System: Objects', () => {
357
356
it ( 'rejects an Object type with a field function that returns incorrect type' , ( ) => {
358
357
const objType = new GraphQLObjectType ( {
359
358
name : 'SomeObject' ,
360
- // @ts -expect-error FIXME: TS Conversion
359
+ // @ts -expect-error (Wrong type of return)
361
360
fields ( ) {
362
361
return [ { field : ScalarType } ] ;
363
362
} ,
@@ -397,7 +396,7 @@ describe('Type System: Objects', () => {
397
396
const objType = new GraphQLObjectType ( {
398
397
name : 'SomeObject' ,
399
398
fields : { } ,
400
- // @ts -expect-error FIXME: TS Conversion
399
+ // @ts -expect-error (Expected interfaces to return array)
401
400
interfaces ( ) {
402
401
return { } ;
403
402
} ,
@@ -411,7 +410,7 @@ describe('Type System: Objects', () => {
411
410
const objType = new GraphQLObjectType ( {
412
411
name : 'SomeObject' ,
413
412
fields : {
414
- // @ts -expect-error FIXME: TS Conversion
413
+ // @ts -expect-error (Expected resolve to be a function)
415
414
field : { type : ScalarType , resolve : { } } ,
416
415
} ,
417
416
} ) ;
@@ -425,7 +424,7 @@ describe('Type System: Objects', () => {
425
424
const objType = new GraphQLObjectType ( {
426
425
name : 'SomeObject' ,
427
426
fields : {
428
- // @ts -expect-error FIXME: TS Conversion
427
+ // @ts -expect-error (Expected resolve to be a function)
429
428
field : { type : ScalarType , resolve : 0 } ,
430
429
} ,
431
430
} ) ;
@@ -500,7 +499,7 @@ describe('Type System: Interfaces', () => {
500
499
const objType = new GraphQLInterfaceType ( {
501
500
name : 'AnotherInterface' ,
502
501
fields : { } ,
503
- // @ts -expect-error FIXME: TS Conversion
502
+ // @ts -expect-error (Expected Array return)
504
503
interfaces ( ) {
505
504
return { } ;
506
505
} ,
@@ -698,6 +697,7 @@ describe('Type System: Enums', () => {
698
697
( ) =>
699
698
new GraphQLEnumType ( {
700
699
name : 'SomeEnum' ,
700
+ // TODO ts-expect-error (must not be null)
701
701
values : { FOO : null } ,
702
702
} ) ,
703
703
) . to . throw (
@@ -796,7 +796,7 @@ describe('Type System: Input Objects', () => {
796
796
const inputObjType = new GraphQLInputObjectType ( {
797
797
name : 'SomeInputObject' ,
798
798
fields : {
799
- // @ts -expect-error FIXME: TS Conversion
799
+ // @ts -expect-error (Input fields cannot have resolvers)
800
800
f : { type : ScalarType , resolve : dummyFunc } ,
801
801
} ,
802
802
} ) ;
@@ -809,7 +809,7 @@ describe('Type System: Input Objects', () => {
809
809
const inputObjType = new GraphQLInputObjectType ( {
810
810
name : 'SomeInputObject' ,
811
811
fields : {
812
- // @ts -expect-error FIXME: TS Conversion
812
+ // @ts -expect-error (Input fields cannot have resolvers)
813
813
f : { type : ScalarType , resolve : { } } ,
814
814
} ,
815
815
} ) ;
@@ -843,7 +843,9 @@ describe('Type System: List', () => {
843
843
expectList ( String ) . to . throw (
844
844
'Expected [function String] to be a GraphQL type.' ,
845
845
) ;
846
+ // TODO ts-expect-error (must provide type)
846
847
expectList ( null ) . to . throw ( 'Expected null to be a GraphQL type.' ) ;
848
+ // TODO ts-expect-error (must provide type)
847
849
expectList ( undefined ) . to . throw ( 'Expected undefined to be a GraphQL type.' ) ;
848
850
} ) ;
849
851
} ) ;
@@ -874,9 +876,11 @@ describe('Type System: Non-Null', () => {
874
876
expectNonNull ( String ) . to . throw (
875
877
'Expected [function String] to be a GraphQL nullable type.' ,
876
878
) ;
879
+ // TODO ts-expect-error (must provide type)
877
880
expectNonNull ( null ) . to . throw (
878
881
'Expected null to be a GraphQL nullable type.' ,
879
882
) ;
883
+ // TODO ts-expect-error (must provide type)
880
884
expectNonNull ( undefined ) . to . throw (
881
885
'Expected undefined to be a GraphQL nullable type.' ,
882
886
) ;
0 commit comments