You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Failed to load supergraph SDL from ${interpolatedSource}:\n ${e.message}`);
69
+
thrownewError(
70
+
`Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ${interpolatedSource} instead.\n Got error: ${e.message}`,
thrownewError(`Failed to load supergraph SDL from ${interpolatedSource}:\n ${e.message}`);
86
+
thrownewError(
87
+
`Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ${interpolatedSource} instead.\n Got error: ${e.message}`,
.toBe(`Failed to generate the schema for the source
248
248
Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ./fixtures/supergraph-invalid.graphql instead.
249
-
Got result: type Query {
250
-
251
249
Got error: Syntax Error: Expected Name, found <EOF>.`);
252
250
});
253
251
it('throws a helpful error when the source is down',async()=>{
.toBe(`Failed to generate the schema for the source
273
-
Failed to load supergraph SDL from http://down-sdl-source.com/my-sdl.graphql:
274
-
getaddrinfo ENOTFOUND down-sdl-source.com`);
271
+
Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from http://down-sdl-source.com/my-sdl.graphql instead.
0 commit comments