test(ui): align runtime projection fixtures

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-14 07:25:28 +00:00
1 parent db2893438d
commit 0c0a450d88
10 files changed
+23 -1

No files matched your search

+5 -1
View File
@@ -278,7 +278,6 @@ function createRuntimeService(overrides: Partial<WorkspaceRuntimeService> = {}):
scopeType: "execution_workspace",
scopeId: "workspace-1",
serviceName: "web",
status: "running",
lifecycle: "shared",
reuseKey: null,
command: "pnpm dev",
@@ -297,6 +296,10 @@ function createRuntimeService(overrides: Partial<WorkspaceRuntimeService> = {}):
createdAt: new Date("2026-04-06T12:02:00.000Z"),
updatedAt: new Date("2026-04-06T12:03:00.000Z"),
...overrides,
status: overrides.status ?? "running",
actualState: overrides.actualState ?? overrides.status ?? "running",
desiredState: overrides.desiredState ?? null,
latestFailure: overrides.latestFailure ?? null,
};
}
@@ -330,6 +333,7 @@ function createExecutionWorkspace(overrides: Partial<ExecutionWorkspace> = {}):
createdAt: new Date("2026-04-06T12:01:00.000Z"),
updatedAt: new Date("2026-04-06T12:04:00.000Z"),
...overrides,
effectiveRuntimeConfig: overrides.effectiveRuntimeConfig ?? null,
};
}
@@ -75,6 +75,7 @@ function createExecutionWorkspace(overrides: Partial<ExecutionWorkspace> = {}):
createdAt: new Date("2026-04-16T04:59:00.000Z"),
updatedAt: new Date("2026-04-16T05:00:00.000Z"),
...overrides,
effectiveRuntimeConfig: overrides.effectiveRuntimeConfig ?? null,
};
}
@@ -167,6 +167,7 @@ function createExecutionWorkspace(): ExecutionWorkspace {
workspaceRuntime: null,
desiredState: null,
},
effectiveRuntimeConfig: null,
metadata: null,
runtimeServices: [],
createdAt: new Date("2026-04-02T00:00:00.000Z"),
@@ -32,6 +32,8 @@ function createRuntimeService(overrides: Partial<WorkspaceRuntimeService> = {}):
scopeId: overrides.scopeId ?? "workspace-1",
serviceName: overrides.serviceName ?? "web",
status: overrides.status ?? "stopped",
actualState: overrides.actualState ?? overrides.status ?? "stopped",
desiredState: overrides.desiredState ?? null,
lifecycle: overrides.lifecycle ?? "shared",
reuseKey: overrides.reuseKey ?? null,
command: overrides.command ?? "pnpm dev",
@@ -48,6 +50,7 @@ function createRuntimeService(overrides: Partial<WorkspaceRuntimeService> = {}):
stopPolicy: overrides.stopPolicy ?? null,
healthStatus: overrides.healthStatus ?? "unknown",
configIndex: overrides.configIndex ?? null,
latestFailure: overrides.latestFailure ?? null,
createdAt: overrides.createdAt ?? new Date("2026-04-12T00:00:00.000Z"),
updatedAt: overrides.updatedAt ?? new Date("2026-04-12T00:00:00.000Z"),
};
+1
View File
@@ -279,6 +279,7 @@ function makeExecutionWorkspace(overrides: Partial<ExecutionWorkspace> = {}): Ex
createdAt: new Date("2026-03-11T00:00:00.000Z"),
updatedAt: new Date("2026-03-11T00:00:00.000Z"),
...overrides,
effectiveRuntimeConfig: overrides.effectiveRuntimeConfig ?? null,
};
}
@@ -108,6 +108,7 @@ describe("buildIssuePropertiesPanelKey", () => {
cleanupEligibleAt: null,
cleanupReason: null,
config: null,
effectiveRuntimeConfig: null,
metadata: null,
runtimeServices: [],
createdAt: new Date("2026-04-12T12:01:00.000Z"),
@@ -642,6 +642,7 @@ describe("optimistic issue comments", () => {
cleanupEligibleAt: null,
cleanupReason: null,
config: null,
effectiveRuntimeConfig: null,
metadata: null,
createdAt: new Date("2026-03-28T14:00:00.000Z"),
updatedAt: new Date("2026-03-28T14:00:00.000Z"),
@@ -90,6 +90,7 @@ function createExecutionWorkspace(overrides: Partial<ExecutionWorkspace>): Execu
cleanupEligibleAt: overrides.cleanupEligibleAt ?? null,
cleanupReason: overrides.cleanupReason ?? null,
config: overrides.config ?? null,
effectiveRuntimeConfig: overrides.effectiveRuntimeConfig ?? null,
metadata: overrides.metadata ?? null,
runtimeServices: overrides.runtimeServices ?? [],
createdAt: overrides.createdAt ?? new Date("2026-03-26T09:00:00Z"),
@@ -109,6 +110,8 @@ function createRuntimeService(overrides: Partial<WorkspaceRuntimeService> = {}):
scopeId: overrides.scopeId ?? null,
serviceName: overrides.serviceName ?? "preview",
status: overrides.status ?? "running",
actualState: overrides.actualState ?? overrides.status ?? "running",
desiredState: overrides.desiredState ?? null,
lifecycle: overrides.lifecycle ?? "ephemeral",
reuseKey: overrides.reuseKey ?? null,
command: overrides.command ?? null,
@@ -125,6 +128,7 @@ function createRuntimeService(overrides: Partial<WorkspaceRuntimeService> = {}):
stopPolicy: overrides.stopPolicy ?? null,
healthStatus: overrides.healthStatus ?? "healthy",
configIndex: overrides.configIndex ?? null,
latestFailure: overrides.latestFailure ?? null,
createdAt: overrides.createdAt ?? new Date("2026-03-26T09:00:00Z"),
updatedAt: overrides.updatedAt ?? new Date("2026-03-26T09:30:00Z"),
};
+1
View File
@@ -26,6 +26,7 @@ function makeExecutionWorkspace(overrides: Partial<ExecutionWorkspace> = {}): Ex
cleanupEligibleAt: null,
cleanupReason: null,
config: null,
effectiveRuntimeConfig: null,
metadata: null,
lastUsedAt: new Date("2026-04-07T00:00:00.000Z"),
createdAt: new Date("2026-04-07T00:00:00.000Z"),
+5
View File
@@ -328,6 +328,8 @@ function createRuntimeService(
scopeId: overrides.scopeId ?? "execution-workspace-storybook",
serviceName: overrides.serviceName ?? "storybook",
status: overrides.status ?? "running",
actualState: overrides.actualState ?? overrides.status ?? "running",
desiredState: overrides.desiredState ?? null,
lifecycle: overrides.lifecycle ?? "ephemeral",
reuseKey: overrides.reuseKey ?? "storybook",
command: overrides.command ?? "pnpm storybook",
@@ -344,6 +346,7 @@ function createRuntimeService(
stopPolicy: overrides.stopPolicy ?? null,
healthStatus: overrides.healthStatus ?? "healthy",
configIndex: overrides.configIndex ?? 0,
latestFailure: overrides.latestFailure ?? null,
createdAt: overrides.createdAt ?? recent(16),
updatedAt: overrides.updatedAt ?? recent(4),
};
@@ -522,6 +525,7 @@ export const storybookExecutionWorkspaces: ExecutionWorkspace[] = [
cleanupEligibleAt: null,
cleanupReason: null,
config: null,
effectiveRuntimeConfig: null,
metadata: null,
runtimeServices: storybookProjectWorkspaces[0]!.runtimeServices,
createdAt: recent(90),
@@ -558,6 +562,7 @@ export const storybookExecutionWorkspaces: ExecutionWorkspace[] = [
desiredState: "stopped",
serviceStates: { storybook: "stopped" },
},
effectiveRuntimeConfig: null,
metadata: { dirtyEntryCount: 3 },
runtimeServices: [
createRuntimeService({