Skip to content

Commit 7bc64cb

Browse files
committed
more
1 parent 8610bfb commit 7bc64cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/plugin/src/rules/require-import-fragment/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ ruleTester.run('require-import-fragment', rule, {
6363
filename: join(CWD, '__tests__', 'mocks', 'import-fragments', 'same-file.gql'),
6464
}),
6565
withMocks({
66+
only: true,
6667
name: 'should not report with correct relative path import',
6768
filename: join(CWD, '__tests__', 'mocks', 'import-fragments', 'valid-baz-query.gql'),
6869
}),

packages/plugin/src/rules/require-import-fragment/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export const rule: GraphQLESLintRule = {
7777
'FragmentSpread > .name'(node: GraphQLESTreeNode<NameNode>) {
7878
const fragmentName = node.value;
7979
const fragmentsFromSiblings = siblings.getFragment(fragmentName);
80+
console.log({ fragmentsFromSiblings })
8081
for (const comment of comments) {
8182
if (comment.type !== 'Line') continue;
8283

@@ -96,7 +97,6 @@ export const rule: GraphQLESLintRule = {
9697
);
9798
if (hasInSiblings) return;
9899
}
99-
100100
const fragmentInSameFile = fragmentsFromSiblings.some(
101101
source => source.filePath === filePath,
102102
);

0 commit comments

Comments
 (0)