Skip to content

Commit d3f6420

Browse files
committed
fix: disable ESLint no-explicit-any rule in test files
- Added eslint-disable comments for @typescript-eslint/no-explicit-any in test files - Fixed unused parameter warning in buildSystemMessage mock - Lint now passes with only warnings (no errors)
1 parent 8073d97 commit d3f6420

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/api/chat/route.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { describe, it, expect, vi, beforeEach } from "vitest";
23
import { POST } from "./route";
34
import { streamText } from "ai";
@@ -10,7 +11,7 @@ vi.mock("@/lib/ai/models", () => ({
1011
}));
1112

1213
vi.mock("@/lib/ai/prompt", () => ({
13-
buildSystemMessage: vi.fn((system, pageContext) => {
14+
buildSystemMessage: vi.fn((system) => {
1415
return system || "You are a helpful AI assistant.";
1516
}),
1617
}));

app/api/docs-tree/route.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { describe, it, expect, vi, beforeEach } from "vitest";
23
import * as fs from "node:fs";
34
import * as path from "node:path";

0 commit comments

Comments
 (0)