Skip to content

Commit

Permalink
Fix failing graphqlSubscriptions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 29, 2025
1 parent f0f4d77 commit 125bec2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
16 changes: 6 additions & 10 deletions src/__tests__/__snapshots__/graphqlSubscriptions.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ ApolloError {
exports[`GraphQL Subscriptions should throw an error if the result has protocolErrors on it 1`] = `
ApolloError {
"cause": Object {
"extensions": Array [
Object {
"code": "WEBSOCKET_MESSAGE_ERROR",
},
],
"extensions": Object {
"code": "WEBSOCKET_MESSAGE_ERROR",
},
"message": "cannot read message from websocket",
},
"clientErrors": Array [],
Expand All @@ -55,11 +53,9 @@ ApolloError {
"networkError": null,
"protocolErrors": Array [
Object {
"extensions": Array [
Object {
"code": "WEBSOCKET_MESSAGE_ERROR",
},
],
"extensions": Object {
"code": "WEBSOCKET_MESSAGE_ERROR",
},
"message": "cannot read message from websocket",
},
],
Expand Down
28 changes: 11 additions & 17 deletions src/__tests__/graphqlSubscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,9 @@ describe("GraphQL Subscriptions", () => {
[PROTOCOL_ERRORS_SYMBOL]: [
{
message: "cannot read message from websocket",
extensions: [
{
code: "WEBSOCKET_MESSAGE_ERROR",
},
],
extensions: {
code: "WEBSOCKET_MESSAGE_ERROR",
},
} as any,
],
},
Expand Down Expand Up @@ -388,12 +386,10 @@ describe("GraphQL Subscriptions", () => {
[PROTOCOL_ERRORS_SYMBOL]: [
{
message: "cannot read message from websocket",
extensions: [
{
code: "WEBSOCKET_MESSAGE_ERROR",
},
],
} as any,
extensions: {
code: "WEBSOCKET_MESSAGE_ERROR",
},
},
],
},
},
Expand Down Expand Up @@ -482,12 +478,10 @@ describe("GraphQL Subscriptions", () => {
[PROTOCOL_ERRORS_SYMBOL]: [
{
message: "cannot read message from websocket",
extensions: [
{
code: "WEBSOCKET_MESSAGE_ERROR",
},
],
} as any,
extensions: {
code: "WEBSOCKET_MESSAGE_ERROR",
},
},
],
},
},
Expand Down

0 comments on commit 125bec2

Please sign in to comment.