@@ -9,7 +9,6 @@ import type { DirectiveNode } from '../../language/ast.js';
99import { parse } from '../../language/parser.js' ;
1010
1111import { buildSchema } from '../../utilities/buildASTSchema.js' ;
12- import { TypeInfo } from '../../utilities/TypeInfo.js' ;
1312
1413import { validate } from '../validate.js' ;
1514import type { ValidationContext } from '../ValidationContext.js' ;
@@ -53,35 +52,6 @@ describe('Validate: Supports full validation', () => {
5352 ] ) ;
5453 } ) ;
5554
56- it ( 'Deprecated: validates using a custom TypeInfo' , ( ) => {
57- // This TypeInfo will never return a valid field.
58- const typeInfo = new TypeInfo ( testSchema , null , ( ) => null ) ;
59-
60- const doc = parse ( `
61- query {
62- human {
63- pets {
64- ... on Cat {
65- meowsVolume
66- }
67- ... on Dog {
68- barkVolume
69- }
70- }
71- }
72- }
73- ` ) ;
74-
75- const errors = validate ( testSchema , doc , undefined , undefined , typeInfo ) ;
76- const errorMessages = errors . map ( ( error ) => error . message ) ;
77-
78- expect ( errorMessages ) . to . deep . equal ( [
79- 'Cannot query field "human" on type "QueryRoot". Did you mean "human"?' ,
80- 'Cannot query field "meowsVolume" on type "Cat". Did you mean "meowsVolume"?' ,
81- 'Cannot query field "barkVolume" on type "Dog". Did you mean "barkVolume"?' ,
82- ] ) ;
83- } ) ;
84-
8555 it ( 'validates using a custom rule' , ( ) => {
8656 const schema = buildSchema ( `
8757 directive @custom(arg: String) on FIELD
0 commit comments