Skip to content

chore: migrating to tanstack config #12

chore: migrating to tanstack config

chore: migrating to tanstack config #12

Triggered via pull request November 27, 2025 14:43
Status Failure
Total duration 3m 38s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 notice
Test
Property 'toolCalls' does not exist on type 'ChatCompletionChunk'.
Test
Property 'toolCalls' does not exist on type 'ChatCompletionChunk'.
Test
Property 'toolCalls' does not exist on type 'ChatCompletionChunk'.
tests/use-chat.test.ts > useChat > setMessages > should replace all existing messages: packages/typescript/ai-react/tests/use-chat.test.ts#L649
AssertionError: expected [ { …(4) }, { …(4) } ] to deeply equal [ { id: 'msg-new', …(3) } ] - Expected + Received [ { - "createdAt": 2025-11-27T14:45:14.983Z, - "id": "msg-new", + "createdAt": 2025-11-27T14:45:14.920Z, + "id": "_r_s_-1764254714920-sf1p9h", "parts": [ { - "content": "Replaced", + "content": "Hello", "type": "text", }, ], "role": "user", + }, + { + "createdAt": 2025-11-27T14:45:14.928Z, + "id": "_r_s_-1764254714928-f1u0zit", + "parts": [ + { + "content": "Response", + "type": "text", + }, + ], + "role": "assistant", }, ] ❯ tests/use-chat.test.ts:649:39
tests/use-chat.test.ts > useChat > setMessages > should update state immediately: packages/typescript/ai-react/tests/use-chat.test.ts#L623
AssertionError: expected [] to deeply equal [ { id: 'msg-1', role: 'user', …(2) } ] - Expected + Received - [ - { - "createdAt": 2025-11-27T14:45:14.897Z, - "id": "msg-1", - "parts": [ - { - "content": "Immediate", - "type": "text", - }, - ], - "role": "user", - }, - ] + [] ❯ tests/use-chat.test.ts:623:39
tests/use-chat.test.ts > useChat > setMessages > should manually set messages: packages/typescript/ai-react/tests/use-chat.test.ts#L602
AssertionError: expected [] to deeply equal [ { id: 'msg-1', role: 'user', …(2) } ] - Expected + Received - [ - { - "createdAt": 2025-11-27T14:45:14.886Z, - "id": "msg-1", - "parts": [ - { - "content": "Manual", - "type": "text", - }, - ], - "role": "user", - }, - ] + [] ❯ tests/use-chat.test.ts:602:39
tests/use-chat.test.ts > useChat > clear > should reset to initial state: packages/typescript/ai-react/tests/use-chat.test.ts#L563
AssertionError: expected [ { id: 'msg-1', …(3) }, …(2) ] to deeply equal [] - Expected + Received - [] + [ + { + "createdAt": 2025-11-27T14:45:14.718Z, + "id": "msg-1", + "parts": [ + { + "content": "Initial", + "type": "text", + }, + ], + "role": "user", + }, + { + "createdAt": 2025-11-27T14:45:14.720Z, + "id": "_r_o_-1764254714720-n5f5bc", + "parts": [ + { + "content": "Hello", + "type": "text", + }, + ], + "role": "user", + }, + { + "createdAt": 2025-11-27T14:45:14.724Z, + "id": "_r_o_-1764254714724-91y1fv", + "parts": [ + { + "content": "Response", + "type": "text", + }, + ], + "role": "assistant", + }, + ] ❯ tests/use-chat.test.ts:563:39
tests/use-chat.test.ts > useChat > clear > should clear all messages: packages/typescript/ai-react/tests/use-chat.test.ts#L533
AssertionError: expected [ { …(4) }, { …(4) } ] to deeply equal [] - Expected + Received - [] + [ + { + "createdAt": 2025-11-27T14:45:14.590Z, + "id": "_r_n_-1764254714590-euj3y2", + "parts": [ + { + "content": "Hello", + "type": "text", + }, + ], + "role": "user", + }, + { + "createdAt": 2025-11-27T14:45:14.595Z, + "id": "_r_n_-1764254714595-zyypl9", + "parts": [ + { + "content": "Response", + "type": "text", + }, + ], + "role": "assistant", + }, + ] ❯ tests/use-chat.test.ts:533:39
tests/message-converters.test.ts > message-converters > modelMessageToUIMessage > should convert message with tool calls: packages/typescript/ai-client/tests/message-converters.test.ts#L348
AssertionError: expected [ { type: 'text', …(1) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/message-converters.test.ts:348:28
Preview
{ "workflowData": { "owner": "TanStack", "repo": "ai", "sha": "982739afd7dd7466bc3dcabc1b4dfa115cd855c2", "ref": "30" }, "key": "z1KmprExGB", "runId": 19739932689, "webhookDebug": { "action": "requested", "head_branch": "tanstack-config", "head_repository_full_name": "TanStack/ai", "full_name": "TanStack/ai", "isPullRequest": true, "prNumber": 30, "prNumberType": "number", "isNewPullRequest": true, "isOldPullRequest": false, "prKey": "TanStack/ai:tanstack-config", "oldPrDataHash": "VZxLDAxxGT", "lookupKey": "TanStack/ai:tanstack-config", "data": { "owner": "TanStack", "repo": "ai", "sha": "982739afd7dd7466bc3dcabc1b4dfa115cd855c2", "ref": "30" } } }