Skip to content

Commit e7c1e18

Browse files
committed
🤖 Fix TypeScript error in renameWorkspace test
Add type guard to narrow Result type before accessing metadata.
1 parent 42784df commit e7c1e18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ipcMain/renameWorkspace.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ describeIntegration("IpcMain rename workspace integration tests", () => {
138138
secondBranchName
139139
);
140140
expect(createResult.success).toBe(true);
141+
if (!createResult.success) throw new Error("Failed to create workspace");
141142
const secondWorkspaceId = createResult.metadata.id;
142143

143144
// Rename first workspace to the second workspace's title - should succeed

0 commit comments

Comments
 (0)