test(FN-4114): complete Step 4 — add invariant and liveness regression tests
Fusion-Task-Id: FN-4114 Fusion-Task-Lineage: 44fd5718-42dc-44d1-8f5a-97b67dd05d13
This commit is contained in:
@@ -170,6 +170,7 @@ vi.mock("node:child_process", async () => {
|
||||
});
|
||||
vi.mock("node:fs", () => ({
|
||||
existsSync: vi.fn().mockReturnValue(true),
|
||||
realpathSync: vi.fn((path: string) => path),
|
||||
}));
|
||||
|
||||
export const mockExecuteAll = vi.fn().mockResolvedValue([]);
|
||||
@@ -227,7 +228,7 @@ import { findWorktreeUser } from "../merger.js";
|
||||
import { StepSessionExecutor } from "../step-session-executor.js";
|
||||
import { withRateLimitRetry } from "../rate-limit-retry.js";
|
||||
import { execSync } from "node:child_process";
|
||||
import { existsSync } from "node:fs";
|
||||
import { existsSync, realpathSync } from "node:fs";
|
||||
import { hydrateWorktreeDb } from "../worktree-db-hydrate.js";
|
||||
|
||||
export const mockedCreateFnAgent = vi.mocked(createFnAgent);
|
||||
@@ -238,6 +239,7 @@ export const mockedStepSessionExecutor = vi.mocked(StepSessionExecutor);
|
||||
export const mockedWithRateLimitRetry = vi.mocked(withRateLimitRetry);
|
||||
export const mockedExecSync = vi.mocked(execSync);
|
||||
export const mockedExistsSync = vi.mocked(existsSync);
|
||||
export const mockedRealpathSync = vi.mocked(realpathSync);
|
||||
export const mockedHydrateWorktreeDb = vi.mocked(hydrateWorktreeDb);
|
||||
|
||||
export type EventListener = (...args: unknown[]) => void;
|
||||
|
||||
Reference in New Issue
Block a user