Skip to content

Commit e44efad

Browse files
committed
fix: update Yoga and fix tests to expect correct HTTP status code for upload errors
1 parent 9fd4516 commit e44efad

File tree

3 files changed

+65
-86
lines changed

3 files changed

+65
-86
lines changed

package-lock.json

Lines changed: 62 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"license": "BSD-3-Clause",
2121
"dependencies": {
22-
"@graphql-yoga/node": "2.6.0",
22+
"@graphql-yoga/node": "2.11.0",
2323
"@graphql-tools/utils": "8.6.12",
2424
"@graphql-tools/merge": "8.2.13",
2525
"@graphql-tools/schema": "8.3.13",

spec/ParseGraphQLServer.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9419,7 +9419,8 @@ describe('ParseGraphQLServer', () => {
94199419
});
94209420

94219421
const result = JSON.parse(await res.text());
9422-
expect(res.status).toEqual(500);
9422+
// Server should return 413 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413
9423+
expect(res.status).toEqual(413);
94239424
expect(result.errors[0].message).toEqual('File size limit exceeded: 1024 bytes');
94249425
});
94259426

0 commit comments

Comments
 (0)