refactor: context types #1322
Triggered via pull request
September 25, 2024 14:59
Status
Failure
Total duration
3m 48s
Artifacts
–
Annotations
8 errors
tests/examples/10_transport-http/transport-http_extension_headers__dynamicHeaders.test.ts > transport-http_extension_headers__dynamicHeaders:
tests/examples/10_transport-http/transport-http_extension_headers__dynamicHeaders.test.ts#L19
Error: Snapshot `transport-http_extension_headers__dynamicHeaders 1` mismatched
- Expected
+ Received
- ---------------------------------------- SHOW ----------------------------------------
- {
- methodMode: 'post',
- headers: Headers {
- accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8',
- 'content-type': 'application/json',
- 'x-sent-at-time': 'DYNAMIC_VALUE'
- },
- signal: undefined,
- method: 'post',
- url: 'https://countries.trevorblades.com/graphql',
- body: '{"query":"{ languages { code } }"}'
- }
+ /some/path/to/runPipeline.ts:84
+ return new ContextualError(message, { hookName: signal.hookName, source: signal.source }, signal.error)
+ ^
+
+
+ ContextualError: There was an error in the core implementation of hook "exchange".
+ at runPipeline (/some/path/to/runPipeline.ts:XX:XX)
+ at process.processTicksAndRejections (node:internal/process/task_queues:XX:XX)
+ at async runPipeline (/some/path/to/runPipeline.ts:XX:XX)
+ at async runPipeline (/some/path/to/runPipeline.ts:XX:XX)
+ at async Object.run (/some/path/to/main.ts:XX:XX)
+ at async run (/some/path/to/client.ts:XX:XX)
+ at async runRaw (/some/path/to/client.ts:XX:XX)
+ at async Object.raw (/some/path/to/client.ts:XX:XX)
+ at async Proxy.rawString (/some/path/to/client.ts:XX:XX)
+ at async <anonymous> (/some/path/to/transport-http_extension_headers__dynamicHeaders.ts:XX:XX) {
+ context: { hookName: 'exchange', source: 'implementation' },
+ [cause]: TypeError: fetch failed
+ at node:internal/deps/undici/undici:13178:13
+ at process.processTicksAndRejections (node:internal/process/task_queues:XX:XX)
+ at async Object.run (/some/path/to/core.ts:XX:XX)
+ at async runHook (/some/path/to/runHook.ts:XX:XX) {
+ [cause]: AggregateError [ETIMEDOUT]:
+ at internalConnectMultiple (node:net:XX:XX)
+ at internalConnectMultiple (node:net:XX:XX)
+ at Timeout.internalConnectMultipleTimeout (node:net:XX:XX)
+ at listOnTimeout (node:internal/timers:XX:XX)
+ at process.processTimers (node:internal/timers:XX:XX) {
+ code: 'ETIMEDOUT',
+ [errors]: [
+ Error: connect ETIMEDOUT 146.75.77.51:443
+ at createConnectionError (node:net:XX:XX)
+ at Timeout.internalConnectMultipleTimeout (node:net:XX:XX)
+ at listOnTimeout (node:internal/timers:XX:XX)
+ at process.processTimers (node:internal/timers:XX:XX) {
+ errno: -110,
+ code: 'ETIMEDOUT',
+ syscall: 'connect',
+ address: '146.75.77.51',
+ port: 443
+ },
+ Error: connect ENETUNREACH 2a04:4e42:83::307:443 - Local (:::0)
+ at internalConnectMultiple (node:net:XX:XX)
+ at Timeout.internalConnectMultipleTimeout (node:net:XX:XX)
+ at listOnTimeout (node:internal/timers:XX:XX)
+ at process.processTimers (node:internal/timers:XX:XX) {
+ errno: -101,
+ code: 'ENETUNREACH',
+ syscall: 'connect',
+ address: '2a04:4e42:83::307',
+ port: 443
+ }
+ ]
+ }
+ }
+ }
+
+ Node.js vXX.XX.XX
❯ tests/examples/10_transport-http/transport-http_extension_headers__dynamicHeaders.test.ts:19:3
|
tests/examples/55_generated/generated_arguments__arguments.test.ts > generated_arguments__arguments:
tests/examples/55_generated/generated_arguments__arguments.test.ts#L16
Error: Snapshot `generated_arguments__arguments 1` mismatched
- Expected
+ Received
- ---------------------------------------- SHOW ----------------------------------------
- [
- {
- "name": "Canada",
- "continent": {
- "name": "North America"
- }
- },
- {
- "name": "Germany",
- "continent": {
- "name": "Europe"
- }
- },
- {
- "name": "Japan",
- "continent": {
- "name": "Asia"
+ /some/path/to/runPipeline.ts:84
+ return new ContextualError(message, { hookName: signal.hookName, source: signal.source }, signal.error)
+ ^
+
+
+ ContextualError: There was an error in the core implementation of hook "exchange".
+ at runPipeline (/some/path/to/runPipeline.ts:XX:XX)
+ at process.processTicksAndRejections (node:internal/process/task_queues:XX:XX)
+ at async runPipeline (/some/path/to/runPipeline.ts:XX:XX)
+ at async runPipeline (/some/path/to/runPipeline.ts:XX:XX)
+ at async Object.run (/some/path/to/main.ts:XX:XX)
+ at async run (/some/path/to/client.ts:XX:XX)
+ at async executeRootType (/some/path/to/client.ts:XX:XX)
+ at async executeRootTypeField (/some/path/to/client.ts:XX:XX)
+ at async <anonymous> (/some/path/to/generated_arguments__arguments.ts:XX:XX) {
+ context: { hookName: 'exchange', source: 'implementation' },
+ [cause]: TypeError: fetch failed
+ at node:internal/deps/undici/undici:13178:13
+ at process.processTicksAndRejections (node:internal/process/task_queues:XX:XX)
+ at async Object.run (/some/path/to/core.ts:XX:XX)
+ at async runHook (/some/path/to/runHook.ts:XX:XX) {
+ [cause]: AggregateError [ETIMEDOUT]:
+ at internalConnectMultiple (node:net:XX:XX)
+ at internalConnectMultiple (node:net:XX:XX)
+ at Timeout.internalConnectMultipleTimeout (node:net:XX:XX)
+ at listOnTimeout (node:internal/timers:XX:XX)
+ at process.processTimers (node:internal/timers:XX:XX) {
+ code: 'ETIMEDOUT',
+ [errors]: [
+ Error: connect ETIMEDOUT 146.75.77.51:443
+ at createConnectionError (node:net:XX:XX)
+ at Timeout.internalConnectMultipleTimeout (node:net:XX:XX)
+ at listOnTimeout (node:internal/timers:XX:XX)
+ at process.processTimers (node:internal/timers:XX:XX) {
+ errno: -110,
+ code: 'ETIMEDOUT',
+ syscall: 'connect',
+ address: '146.75.77.51',
+ port: 443
+ },
+ Error: connect ENETUNREACH 2a04:4e42:83::307:443 - Local (:::0)
+ at internalConnectMultiple (node:net:XX:XX)
+ at Timeout.internalConnectMultipleTimeout (node:net:XX:XX)
+ at listOnTimeout (node:internal/timers:XX:XX)
+ at process.processTimers (node:internal/timers:XX:XX) {
+ errno: -101,
+ code: 'ENETUNREACH',
+ syscall: 'connect',
+ address: '2a04:4e42:83::307',
+ port: 443
+ }
+ ]
}
}
- ]
+ }
+
+ Node.js vXX.XX.XX
❯ tests/examples/55_generated/generated_arguments__arguments.test.ts:16:3
|
Node 20 @env node
Process completed with exit code 1.
|
Node 20 @env jsdom
The job was canceled because "_20_node" failed.
|
Node 20 @env jsdom
The operation was canceled.
|
Node 22 @env node
The job was canceled because "_20_node" failed.
|
Node 22 @env jsdom
The job was canceled because "_20_node" failed.
|
Node 22 @env jsdom
The operation was canceled.
|