| ... | @@ -282,10 +282,14 @@ describe("composerDraftStore project draft thread mapping", () => { | ... | @@ -282,10 +282,14 @@ describe("composerDraftStore project draft thread mapping", () => { |
| 282 | branch: "main", | 282 | branch: "main", |
| 283 | worktreePath: "/tmp/main-worktree", | 283 | worktreePath: "/tmp/main-worktree", |
| 284 | }); | 284 | }); |
| 285 | store.setProjectDraftThreadId(projectId, threadId, { | 285 | const runtimeUndefinedOptions = { |
| 286 | branch: undefined, | 286 | branch: undefined, |
| 287 | worktreePath: undefined, | 287 | worktreePath: undefined, |
| 288 | }); | 288 | } as unknown as { |
| | 289 | branch?: string | null; |
| | 290 | worktreePath?: string | null; |
| | 291 | }; |
| | 292 | store.setProjectDraftThreadId(projectId, threadId, runtimeUndefinedOptions); |
| 289 | | 293 | |
| 290 | expect(useComposerDraftStore.getState().getDraftThread(threadId)).toMatchObject({ | 294 | expect(useComposerDraftStore.getState().getDraftThread(threadId)).toMatchObject({ |
| 291 | projectId, | 295 | projectId, |