Skip to content

Commit

Permalink
test: add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Jan 8, 2024
1 parent 220dfc0 commit 78b56db
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,34 @@ testVersions((api, version) => {
]),
}),
);

expect(
api.composeServices([
{
name: 'users',
typeDefs: graphql`
extend schema
@link(
url: "https://specs.apollo.dev/federation/${version}"
import: ["@key", "@inaccessible"]
)
type Query {
users: [User!]!
}
type User @key(fields: "id") {
id: ID
friends(type: FriendType = FAMILY @inaccessible): [User!]!
}
enum FriendType {
FAMILY @inaccessible
FRIEND
}
`,
},
]),
).toEqual(expect.objectContaining({ supergraphSdl: expect.any(String) }));
});
});

0 comments on commit 78b56db

Please sign in to comment.