Skip to content

Commit b4ea255

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

File tree

3 files changed

+65
-86
lines changed

3 files changed

+65
-86
lines changed

package-lock.json

+62-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
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.10.1-canary-7d06345.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

+2-1
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)