Skip to content

Commit 6f6adb3

Browse files
committed
🤖 Fix remaining stableWorkspacePath references and E2E config
- Remove stableWorkspacePath from createWorkspace and renameWorkspace tests - Fix E2E demoProject config: ProjectConfig only has 'workspaces', not 'path'
1 parent 4a90cce commit 6f6adb3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/e2e/utils/demoProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function prepareDemoProject(
6060
};
6161

6262
const configPayload = {
63-
projects: [[projectPath, { path: projectPath, workspaces: [{ path: workspacePath }] }]],
63+
projects: [[projectPath, { workspaces: [{ path: workspacePath }] }]],
6464
} as const;
6565

6666
fs.writeFileSync(configPath, JSON.stringify(configPayload, null, 2));

tests/ipcMain/createWorkspace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describeIntegration("IpcMain create workspace integration tests", () => {
7777
}
7878
expect(createResult.success).toBe(true);
7979
expect(createResult.metadata.id).toBeDefined();
80-
expect(createResult.metadata.stableWorkspacePath).toBeDefined();
80+
expect(createResult.metadata.namedWorkspacePath).toBeDefined();
8181
expect(createResult.metadata.namedWorkspacePath).toBeDefined();
8282
expect(createResult.metadata.projectName).toBeDefined();
8383

tests/ipcMain/renameWorkspace.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describeIntegration("IpcMain rename workspace integration tests", () => {
4545
workspaceId
4646
);
4747
expect(oldMetadataResult).toBeTruthy();
48-
const oldWorkspacePath = oldMetadataResult.stableWorkspacePath;
48+
const oldWorkspacePath = oldMetadataResult.namedWorkspacePath;
4949

5050
// Clear events before rename
5151
env.sentEvents.length = 0;
@@ -85,7 +85,7 @@ describeIntegration("IpcMain rename workspace integration tests", () => {
8585
expect(newMetadataResult.projectName).toBe(projectName);
8686

8787
// Path DOES change (directory is renamed from old name to new name)
88-
const newWorkspacePath = newMetadataResult.stableWorkspacePath;
88+
const newWorkspacePath = newMetadataResult.namedWorkspacePath;
8989
expect(newWorkspacePath).not.toBe(oldWorkspacePath);
9090
expect(newWorkspacePath).toContain(newName); // New path includes new name
9191

@@ -204,7 +204,7 @@ describeIntegration("IpcMain rename workspace integration tests", () => {
204204
);
205205
expect(newMetadata).toBeTruthy();
206206
expect(newMetadata.id).toBe(workspaceId);
207-
expect(newMetadata.stableWorkspacePath).toBe(oldMetadata.stableWorkspacePath);
207+
expect(newMetadata.namedWorkspacePath).toBe(oldMetadata.namedWorkspacePath);
208208
} finally {
209209
await cleanup();
210210
}

0 commit comments

Comments
 (0)