Skip to content

Commit 8ad7d55

Browse files
authored
test: no-unreachable-types does not recognize implemented interfaces (#274)
1 parent 5b35139 commit 8ad7d55

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/plugin/tests/no-unreachable-types.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ ruleTester.runGraphQLTests('no-unreachable-types', rule, {
3030
name: String
3131
}
3232
`),
33+
34+
useSchema(/* GraphQL */ `
35+
type Query {
36+
me: User
37+
}
38+
39+
interface Address {
40+
city: String
41+
}
42+
43+
type User implements Address {
44+
city: String
45+
}
46+
`),
3347
],
3448
invalid: [
3549
{

0 commit comments

Comments
 (0)