Fix TS errors: relax bullmq import typing, adjust job loader, and cast chart mock as any

This commit is contained in:
2026-05-16 14:39:00 +02:00
parent 31503624f6
commit ceb664f56c
2 changed files with 3 additions and 3 deletions
@@ -28,7 +28,7 @@ describe("TradingViewChart", () => {
timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }), timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }),
addSeries: vi.fn(() => mockSeries), addSeries: vi.fn(() => mockSeries),
remove: vi.fn(), remove: vi.fn(),
}); } as any);
}); });
it("renders the ticker symbol as heading", () => { it("renders the ticker symbol as heading", () => {
@@ -77,7 +77,7 @@ describe("TradingViewChart", () => {
timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }), timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }),
addSeries: mockAddSeries, addSeries: mockAddSeries,
remove: vi.fn(), remove: vi.fn(),
}); } as any);
render(<TradingViewChart ticker="TEST" />); render(<TradingViewChart ticker="TEST" />);
+1 -1
View File
@@ -1,5 +1,5 @@
import pkg from "bullmq"; import pkg from "bullmq";
const { Queue, Worker, QueueScheduler } = pkg; const { Queue, Worker, QueueScheduler } = pkg as any;
import IORedis from "ioredis"; import IORedis from "ioredis";
import { OpenRouterClient } from "./openrouter"; import { OpenRouterClient } from "./openrouter";
import { TradingGraph } from "../agents/tradingGraph"; import { TradingGraph } from "../agents/tradingGraph";