feat: add comprehensive unit tests for priority 1 components #317
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'.
|