Fix TradingViewChart test mocks (timeScale) and add UI test for executionPlan rendering in StockDetail
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,7 @@ describe("TradingViewChart", () => {
|
||||
// Update the mock's setData to track calls
|
||||
const mockSeries = { setData: mockSetData };
|
||||
mockCreateChart.mockReturnValue({
|
||||
timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }),
|
||||
addSeries: vi.fn(() => mockSeries),
|
||||
remove: vi.fn(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user