Skip to content

Commit ab453a1

Browse files
test(mercurius): update sdl snapshot
1 parent 0656f09 commit ab453a1

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

packages/mercurius/tests/e2e/code-first-federation.spec.ts

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,17 @@ describe('Code-first - Federation', () => {
6060

6161
expect(response.data).toEqual({
6262
_service: {
63-
sdl: `type Post @key(fields: "id") {
63+
sdl: `directive @shareable on FIELD_DEFINITION | OBJECT
64+
65+
directive @link(url: String!, import: [link__Import]) on SCHEMA
66+
67+
directive @inaccessible on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
68+
69+
directive @override(from: String!) on FIELD_DEFINITION
70+
71+
type Post
72+
@key(fields: \"id\")
73+
{
6474
id: ID!
6575
title: String!
6676
authorId: Int!
@@ -69,17 +79,21 @@ describe('Code-first - Federation', () => {
6979
type Query @extends {
7080
findPost(id: Float!): Post!
7181
getPosts: [Post!]!
72-
search: [FederationSearchResultUnion!]! @deprecated(reason: "test")
82+
search: [FederationSearchResultUnion!]! @deprecated(reason: \"test\")
7383
}
7484
75-
"""Search result description"""
85+
\"\"\"Search result description\"\"\"
7686
union FederationSearchResultUnion = Post | User
7787
78-
type User @key(fields: "id") @extends {
88+
type User
89+
@key(fields: \"id\")
90+
@extends
91+
{
7992
id: ID! @external
8093
posts: [Post!]!
8194
}
82-
`,
95+
96+
scalar link__Import`,
8397
},
8498
});
8599
});

0 commit comments

Comments
 (0)