Skip to content

api: header and parameter names. #1030

api: header and parameter names.

api: header and parameter names. #1030

Triggered via pull request October 29, 2024 14:11
Status Failure
Total duration 1m 37s
Artifacts

ts_test.yml

on: pull_request
List packages
5s
List packages
List examples
7s
List examples
Matrix: Build and test
Matrix: check_packages
Matrix: check_and_build_examples
Fit to window
Zoom out
Zoom in

Annotations

14 errors
Check packages/typescript-client: packages/typescript-client/test/cache.test.ts#L263
Replace `·newCacheIgnoredSyncRes.headers.get(⏎······`electric-handle`⏎····` with `⏎······newCacheIgnoredSyncRes.headers.get(`electric-handle``
Check packages/typescript-client
Process completed with exit code 1.
test/cache.test.ts > HTTP Proxy Cache > should get stale response when max age is passed but cache is not yet revalidated: packages/typescript-client/test/cache.test.ts#L145
AssertionError: expected 400 to be 200 // Object.is equality - Expected + Received - 200 + 400 ❯ test/cache.test.ts:145:40
test/cache.test.ts > HTTP Proxy Cache > should get fresh response when age is passed the stale age: packages/typescript-client/test/cache.test.ts#L179
AssertionError: expected 400 to be 200 // Object.is equality - Expected + Received - 200 + 400 ❯ test/cache.test.ts:179:40
test/cache.test.ts > HTTP Initial Data Caching > tells client to resync when shape is out of scope: packages/typescript-client/test/cache.test.ts#L252
AssertionError: expected 400 to be 409 // Object.is equality - Expected + Received - 409 + 400 ❯ test/cache.test.ts:252:28
test/client.test.ts > Shape > should expose connection status: packages/typescript-client/test/client.test.ts#L252
AssertionError: expected false to be true - Expected + Received - true + false ❯ test/client.test.ts:252:37
test/fetch.test.ts > createFetchWithChunkBuffer > should prefetch the next chunk when headers are present: packages/typescript-client/test/fetch.test.ts#L222
AssertionError: expected "spy" to be called with arguments: [ …(2) ] Received: 1st spy call: Array [ - "https://example.com/v1/shape/foo?shape_handle=123&offset=456", - Anything, + "https://example.com/v1/shape/foo", ] 2nd spy call: Array [ - "https://example.com/v1/shape/foo?shape_handle=123&offset=456", - Anything, + "https://example.com/v1/shape/foo?handle=123&offset=456", + Object { + "signal": AbortSignal { + Symbol(kEvents): Map {}, + Symbol(events.maxEventTargetListeners): 10, + Symbol(events.maxEventTargetListenersWarned): false, + Symbol(kHandlers): Map {}, + Symbol(kAborted): false, + Symbol(kReason): undefined, + Symbol(kComposite): false, + }, + }, ] Number of calls: 2 ❯ test/fetch.test.ts:222:23
test/fetch.test.ts > createFetchWithChunkBuffer > should stop and resume prefetching after reaching maxChunksToPrefetch: packages/typescript-client/test/fetch.test.ts#L251
AssertionError: expected 2nd "spy" call to have been called with [ …(2) ] - Expected + Received Array [ - "https://example.com/v1/shape/foo?shape_handle=123&offset=0", + "https://example.com/v1/shape/foo?handle=123&offset=0", Anything, ] ❯ test/fetch.test.ts:251:23
test/fetch.test.ts > createFetchWithChunkBuffer > should stop prefetching as soon as responses are not advancing: packages/typescript-client/src/fetch.ts#L248
TypeError: Cannot read properties of undefined (reading 'headers') ❯ getNextChunkUrl src/fetch.ts:248:27 ❯ prefetchClient src/fetch.ts:133:21 ❯ test/fetch.test.ts:301:24
test/fetch.test.ts > createFetchWithChunkBuffer > should handle failed prefetch attempts gracefully: packages/typescript-client/test/fetch.test.ts#L343
AssertionError: expected "spy" to be called with arguments: [ …(2) ] Received: 1st spy call: Array [ - "https://example.com/v1/shape/foo?shape_handle=123&offset=456", - Anything, + "https://example.com/v1/shape/foo", ] 2nd spy call: Array [ - "https://example.com/v1/shape/foo?shape_handle=123&offset=456", - Anything, + "https://example.com/v1/shape/foo?handle=123&offset=456", + Object { + "signal": AbortSignal { + Symbol(kEvents): Map {}, + Symbol(events.maxEventTargetListeners): 10, + Symbol(events.maxEventTargetListenersWarned): false, + Symbol(kHandlers): Map {}, + Symbol(kAborted): false, + Symbol(kReason): undefined, + Symbol(kComposite): false, + }, + }, ] Number of calls: 2 ❯ test/fetch.test.ts:343:23
test/fetch.test.ts > createFetchWithChunkBuffer > should clear and abort prefetches on new entry: packages/typescript-client/test/fetch.test.ts#L382
AssertionError: expected 2nd "spy" call to have been called with [ …(2) ] - Expected + Received Array [ - "https://example.com/v1/shape/foo?shape_handle=123&offset=0", + "https://example.com/v1/shape/foo?handle=123&offset=0", Anything, ] ❯ test/fetch.test.ts:382:23
test/integration.test.ts > HTTP Sync > should parse incoming data: packages/typescript-client/test/integration.test.ts#L305
AssertionError: expected [ { txt: 'test', i2: 1, …(18) } ] to match object [ { txt: 'changed', i2: 1, …(18) } ] (3 matching properties omitted from actual) - Expected + Received Array [ Object { - "b": false, + "b": true, "bools": Array [ - false, true, false, + true, ], "complexes": Array [ - "(2.2,3.3)", - "(4.4,5.5)", + "(1.1,2.2)", + "(3.3,4.4)", ], "doubles": Array [ Infinity, - NaN, -Infinity, + NaN, ], - "f8": 40.5, + "f8": 4.5, "i2": 1, - "i4": 20, - "i8": 30n, + "i4": 2147483647, + "i8": 9223372036854775807n, "int4s": Array [ - 4, - 5, - 6, + 1, + 2, + 3, ], "ints": Array [ - 4n, - 5n, - 6n, + 1n, + 2n, + 3n, ], "ints2": Array [ Array [ + 1n, + 2n, + 3n, + ], + Array [ 4n, 5n, 6n, ], - Array [ - 7n, - 8n, - 9n, - ], ], "json": Object { - "bar": "foo", + "foo": "bar", }, "jsonb": Object { - "bar": "foo", + "foo": "bar", }, "jsons": Array [ - Object {}, + Object { + "foo": "bar", + }, + Object { + "bar": "baz", + }, ], "moods": Array [ "sad", + "ok", "happy", ], "moods2": Array [ Array [ "sad", - "happy", + "ok", ], Array [ + "ok", "happy", - "ok", ], ], "posints": Array [ - "6", - "10", - "3", + "5", + "9", + "2", ], - "txt": "changed", + "txt": "test", "txts": Array [ - "new", - "values", + "foo", + "bar", + "baz", ], "value": Object { - "a": 6, + "a": 5, }, }, ] ❯ test/integration.test.ts:305:41