Skip to content

Commit 8e7d7ed

Browse files
committed
fix: resolve ESLint warnings for any types in test file
1 parent 3757809 commit 8e7d7ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/evals/src/cli/runTask.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("runTask execution methods", () => {
110110
it("should retry on failure", async () => {
111111
const execaMock = vi.mocked(await import("execa")).execa
112112
execaMock.mockClear()
113-
execaMock.mockRejectedValueOnce(new Error("Container failed")).mockResolvedValueOnce({ exitCode: 0 } as any)
113+
execaMock.mockRejectedValueOnce(new Error("Container failed")).mockResolvedValueOnce({ exitCode: 0 } as any) // eslint-disable-line @typescript-eslint/no-explicit-any
114114

115115
await processTaskInDocker({
116116
taskId: 123,
@@ -149,7 +149,7 @@ describe("runTask execution methods", () => {
149149
const { AzureContainerAppsExecutor } = await import("./azureContainerApps.js")
150150
const mockExecutor = vi.mocked(AzureContainerAppsExecutor)
151151
const mockExecuteJob = vi.fn().mockResolvedValue(undefined)
152-
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any)
152+
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any) // eslint-disable-line @typescript-eslint/no-explicit-any
153153

154154
await processTaskInAzureContainerApps({
155155
taskId: 123,
@@ -178,7 +178,7 @@ describe("runTask execution methods", () => {
178178
const { AzureContainerAppsExecutor } = await import("./azureContainerApps.js")
179179
const mockExecutor = vi.mocked(AzureContainerAppsExecutor)
180180
const mockExecuteJob = vi.fn().mockRejectedValue(new Error("Azure execution failed"))
181-
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any)
181+
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any) // eslint-disable-line @typescript-eslint/no-explicit-any
182182

183183
await expect(
184184
processTaskInAzureContainerApps({

0 commit comments

Comments
 (0)