mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: resolve ESLint warnings for any types in test file
This commit is contained in:
parent
3757809d4e
commit
8e7d7ed35f
1 changed files with 3 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ describe("runTask execution methods", () => {
|
|||
it("should retry on failure", async () => {
|
||||
const execaMock = vi.mocked(await import("execa")).execa
|
||||
execaMock.mockClear()
|
||||
execaMock.mockRejectedValueOnce(new Error("Container failed")).mockResolvedValueOnce({ exitCode: 0 } as any)
|
||||
execaMock.mockRejectedValueOnce(new Error("Container failed")).mockResolvedValueOnce({ exitCode: 0 } as any) // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
|
||||
await processTaskInDocker({
|
||||
taskId: 123,
|
||||
|
|
@ -149,7 +149,7 @@ describe("runTask execution methods", () => {
|
|||
const { AzureContainerAppsExecutor } = await import("./azureContainerApps.js")
|
||||
const mockExecutor = vi.mocked(AzureContainerAppsExecutor)
|
||||
const mockExecuteJob = vi.fn().mockResolvedValue(undefined)
|
||||
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any)
|
||||
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any) // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
|
||||
await processTaskInAzureContainerApps({
|
||||
taskId: 123,
|
||||
|
|
@ -178,7 +178,7 @@ describe("runTask execution methods", () => {
|
|||
const { AzureContainerAppsExecutor } = await import("./azureContainerApps.js")
|
||||
const mockExecutor = vi.mocked(AzureContainerAppsExecutor)
|
||||
const mockExecuteJob = vi.fn().mockRejectedValue(new Error("Azure execution failed"))
|
||||
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any)
|
||||
mockExecutor.mockImplementation(() => ({ executeJob: mockExecuteJob }) as any) // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
|
||||
await expect(
|
||||
processTaskInAzureContainerApps({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue