From b07c6ec68913ed5a394e7fda0ea51ba40d53e540 Mon Sep 17 00:00:00 2001 From: Harold Kim Date: Thu, 9 Jul 2026 09:38:58 +0000 Subject: [PATCH] fix: add ACTIVE_CUSTOM_IMAGE_SETUP_STATUSES to environments service mocks The constant was added as a named export in the environments service but the vi.mock factories in environment-custom-image-routes and environment-instance-routes tests did not include it, causing vitest to throw on import. Co-Authored-By: Paperclip --- server/src/__tests__/environment-custom-image-routes.test.ts | 1 + server/src/__tests__/environment-instance-routes.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/server/src/__tests__/environment-custom-image-routes.test.ts b/server/src/__tests__/environment-custom-image-routes.test.ts index ae20e425261..afd1e652bce 100644 --- a/server/src/__tests__/environment-custom-image-routes.test.ts +++ b/server/src/__tests__/environment-custom-image-routes.test.ts @@ -70,6 +70,7 @@ vi.mock("../services/index.js", () => ({ vi.mock("../services/environments.js", () => ({ environmentService: () => mockEnvironmentService, + ACTIVE_CUSTOM_IMAGE_SETUP_STATUSES: ["starting", "waiting_for_user", "capturing"], })); vi.mock("../services/execution-workspaces.js", () => ({ diff --git a/server/src/__tests__/environment-instance-routes.test.ts b/server/src/__tests__/environment-instance-routes.test.ts index a0729c8a84a..b16651fd2d1 100644 --- a/server/src/__tests__/environment-instance-routes.test.ts +++ b/server/src/__tests__/environment-instance-routes.test.ts @@ -60,6 +60,7 @@ vi.mock("../services/index.js", () => ({ vi.mock("../services/environments.js", () => ({ environmentService: () => mockEnvironmentService, + ACTIVE_CUSTOM_IMAGE_SETUP_STATUSES: ["starting", "waiting_for_user", "capturing"], })); vi.mock("../services/execution-workspaces.js", () => ({