Skip to content

Commit abe402a

Browse files
committed
more imports
1 parent fc0c01e commit abe402a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/validation/__tests__/RequiredStatusOnFieldMatchesDefinitionRule-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { describe, it } from 'mocha';
22

3-
import { buildSchema } from '../../utilities/buildASTSchema';
3+
import { buildSchema } from '../../utilities/buildASTSchema.js';
44

5-
import { RequiredStatusOnFieldMatchesDefinitionRule } from '../rules/RequiredStatusOnFieldMatchesDefinitionRule';
5+
import { RequiredStatusOnFieldMatchesDefinitionRule } from '../rules/RequiredStatusOnFieldMatchesDefinitionRule.js';
66

7-
import { expectValidationErrorsWithSchema } from './harness';
7+
import { expectValidationErrorsWithSchema } from './harness.js';
88

99
function expectErrors(queryStr: string) {
1010
return expectValidationErrorsWithSchema(

src/validation/rules/RequiredStatusOnFieldMatchesDefinitionRule.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { GraphQLError } from '../../error/GraphQLError';
1+
import { GraphQLError } from '../../error/GraphQLError.js';
22

33
import type {
44
FieldNode,
55
ListNullabilityOperatorNode,
66
NullabilityAssertionNode,
7-
} from '../../language/ast';
8-
import type { ASTReducer, ASTVisitor } from '../../language/visitor';
9-
import { visit } from '../../language/visitor';
7+
} from '../../language/ast.js';
8+
import type { ASTReducer, ASTVisitor } from '../../language/visitor.js';
9+
import { visit } from '../../language/visitor.js';
1010

11-
import type { GraphQLOutputType } from '../../type/definition';
11+
import type { GraphQLOutputType } from '../../type/definition.js';
1212
import {
1313
assertListType,
1414
getNullableType,
1515
isListType,
16-
} from '../../type/definition';
16+
} from '../../type/definition.js';
1717

18-
import type { ValidationContext } from '../ValidationContext';
18+
import type { ValidationContext } from '../ValidationContext.js';
1919

2020
/**
2121
* List element nullability designators need to use a depth that is the same as or less than the

0 commit comments

Comments
 (0)