@@ -9,7 +9,6 @@ import type { DirectiveNode } from '../../language/ast.js';
9
9
import { parse } from '../../language/parser.js' ;
10
10
11
11
import { buildSchema } from '../../utilities/buildASTSchema.js' ;
12
- import { TypeInfo } from '../../utilities/TypeInfo.js' ;
13
12
14
13
import { validate } from '../validate.js' ;
15
14
import type { ValidationContext } from '../ValidationContext.js' ;
@@ -53,35 +52,6 @@ describe('Validate: Supports full validation', () => {
53
52
] ) ;
54
53
} ) ;
55
54
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
-
85
55
it ( 'validates using a custom rule' , ( ) => {
86
56
const schema = buildSchema ( `
87
57
directive @custom(arg: String) on FIELD
0 commit comments