fix: resolve all 41 pre-existing dashboard test failures
- AgentsView: add missing fetchModels/fetchAgentStats mocks, update tests for new multi-step NewAgentDialog and ActiveAgentsPanel dual rendering - routes-diff: rewrite tests to match new resolveDiffBase() two-dot syntax - routes.test: fix spec/revise test — done→triage is valid per VALID_TRANSITIONS - activity-feed CSS: replace hardcoded rgba(88,166,255) with color-mix token, fix var(--error) → var(--color-error) - server/webhook/websocket tests: add getDatabase() mock for AiSessionStore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,6 +24,10 @@ function createMockStore(overrides: Partial<TaskStore> = {}): TaskStore {
|
||||
updatePrInfo: vi.fn().mockResolvedValue(undefined),
|
||||
updateIssueInfo: vi.fn().mockResolvedValue(undefined),
|
||||
getRootDir: vi.fn().mockReturnValue("/fake/root"),
|
||||
getDatabase: vi.fn().mockReturnValue({
|
||||
exec: vi.fn(),
|
||||
prepare: vi.fn().mockReturnValue({ run: vi.fn().mockReturnValue({ changes: 0 }), get: vi.fn(), all: vi.fn().mockReturnValue([]) }),
|
||||
}),
|
||||
getMissionStore: vi.fn().mockReturnValue({
|
||||
listMissions: vi.fn().mockReturnValue([]),
|
||||
createMission: vi.fn(),
|
||||
|
||||
Reference in New Issue
Block a user