fix(ClientRequest): support Request
as init when recording raw headers
#1859
Annotations
5 errors and 2 warnings
Node.js tests:
test/node/graphql-api/batched-queries.apollo.test.ts#L169
AssertionError: expected { name: 'TypeError', …(2) } to deeply equal [ { data: { user: { id: 1 } } }, …(1) ]
- Expected:
Array [
Object {
"data": Object {
"user": Object {
"id": 1,
},
},
},
Object {
"data": Object {
"server": Object {
"url": "http://127.0.0.1:49198/",
},
},
},
]
+ Received:
Object {
"message": "inferRawHeaders(...) is not iterable (cannot read property undefined)",
"name": "TypeError",
"stack": "TypeError: inferRawHeaders(...) is not iterable (cannot read property undefined)
at Object.construct (file:///Users/runner/work/msw/msw/node_modules/.pnpm/@mswjs+interceptors@0.35.7/node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/utils/recordRawHeaders.ts:220:30)
at Module.bypass (/Users/runner/work/msw/msw/src/core/bypass.ts:21:19)
at /Users/runner/work/msw/msw/test/node/graphql-api/batched-queries.apollo.test.ts:50:34
at async Promise.all (index 1)
at /Users/runner/work/msw/msw/test/node/graphql-api/batched-queries.apollo.test.ts:42:23
at /Users/runner/work/msw/msw/src/core/handlers/RequestHandler.ts:322:24
at HttpHandler.run (/Users/runner/work/msw/msw/src/core/handlers/RequestHandler.ts:303:28)
at Module.executeHandlers (/Users/runner/work/msw/msw/src/core/utils/executeHandlers.ts:36:14)
at Module.until (file:///Users/runner/work/msw/msw/node_modules/.pnpm/@open-draft+until@2.1.0/node_modules/@open-draft/until/src/until.ts:23:18)
at Module.handleRequest (/Users/runner/work/msw/msw/src/core/utils/handleRequest.ts:63:24)",
}
❯ test/node/graphql-api/batched-queries.apollo.test.ts:169:33
|
Node.js tests:
test/node/graphql-api/batched-queries.batched-execute.test.ts#L159
AssertionError: expected [ { …(3) } ] to deeply equal undefined
- Expected:
undefined
+ Received:
Array [
Object {
"locations": Array [
Object {
"column": 11,
"line": 6,
},
],
"message": "inferRawHeaders(...) is not iterable (cannot read property undefined)",
"path": Array [
"server_0",
],
},
]
❯ test/node/graphql-api/batched-queries.batched-execute.test.ts:159:18
|
Node.js tests:
test/node/graphql-api/response-patching.node.test.ts#L111
TypeError: Cannot convert undefined or null to object
❯ test/node/graphql-api/response-patching.node.test.ts:111:20
|
Node.js tests:
test/node/msw-api/setup-server/scenarios/response-patching.node.test.ts#L91
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ test/node/msw-api/setup-server/scenarios/response-patching.node.test.ts:91:22
|
Node.js tests
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Upload test artifacts
No files were found with the provided path: test/browser/test-results. No artifacts will be uploaded.
|
Loading