test(FN-5102): harden repro mock to keep hook deterministic
Fusion-Task-Id: FN-5102 Fusion-Task-Lineage: 13be2941-176e-4a6e-b6fc-2bb644f7444a
This commit is contained in:
committed by
gsxdsm
parent
780cf6b3d8
commit
13977f4682
@@ -65,10 +65,10 @@ describe("agent task creation githubTracking.enabled persistence", () => {
|
||||
const githubTrackingHookModule = await githubTrackingHookModulePromise;
|
||||
const githubTrackingModule = await githubTrackingModulePromise;
|
||||
|
||||
const maybeCreateSpy = vi.spyOn(githubTrackingModule, "maybeCreateTrackingIssue").mockResolvedValue({
|
||||
const maybeCreateSpy = vi.spyOn(githubTrackingModule, "maybeCreateTrackingIssue").mockImplementation(async () => ({
|
||||
created: false,
|
||||
reason: "no_repo_configured",
|
||||
});
|
||||
}));
|
||||
|
||||
githubTrackingHookModule.registerGithubTrackingHook();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user