Skip to content

feat: add comprehensive unit tests for priority 1 components #317

feat: add comprehensive unit tests for priority 1 components

feat: add comprehensive unit tests for priority 1 components #317

Triggered via pull request October 20, 2025 22:48
Status Failure
Total duration 44s
Artifacts

deploy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: app/api/docs-tree/route.test.ts#L28
Type 'undefined' is not assignable to type '{ (path: PathLike, options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined; recursive?: boolean | undefined; } | BufferEncoding | null | undefined): string[]; (path: PathLike, options: { ...; } | "buffer"): Buffer<...>[]; (path: PathLike, options?: BufferEncoding | ... 2 more ... | undefined):...'.
build: app/api/chat/route.test.ts#L171
Argument of type '{ id: string; }' is not assignable to parameter of type 'LanguageModelV2'.
build: app/api/chat/route.test.ts#L151
Argument of type '{ toUIMessageStreamResponse: Mock<() => Response>; }' is not assignable to parameter of type 'StreamTextResult<ToolSet, unknown>'.
build: app/api/chat/route.test.ts#L146
Argument of type '{ id: string; }' is not assignable to parameter of type 'LanguageModelV2'.
build: app/api/chat/route.test.ts#L121
Argument of type '{ toUIMessageStreamResponse: Mock<() => Response>; }' is not assignable to parameter of type 'StreamTextResult<ToolSet, unknown>'.
build: app/api/chat/route.test.ts#L116
Argument of type '{ id: string; }' is not assignable to parameter of type 'LanguageModelV2'.
build: app/api/chat/route.test.ts#L98
Argument of type '{ toUIMessageStreamResponse: Mock<() => Response>; }' is not assignable to parameter of type 'StreamTextResult<ToolSet, unknown>'.
build: app/api/chat/route.test.ts#L93
Argument of type '{ id: string; }' is not assignable to parameter of type 'LanguageModelV2'.
build: app/api/chat/route.test.ts#L72
Argument of type '{ toUIMessageStreamResponse: Mock<() => Response>; }' is not assignable to parameter of type 'StreamTextResult<ToolSet, unknown>'.
build: app/api/chat/route.test.ts#L67
Argument of type '{ id: string; }' is not assignable to parameter of type 'LanguageModelV2'.