Skip to content

The agent that grows with you

test(desktop): compose review ownership with targets

embwl0x6323f6f9242c
diff --git a/apps/desktop/src/store/review.test.ts b/apps/desktop/src/store/review.test.ts
index 231cd64a042..b90ad44293e 100644
--- a/apps/desktop/src/store/review.test.ts
+++ b/apps/desktop/src/store/review.test.ts
@@ -456,9 +456,10 @@ describe('view state', () => {
// A repository move arms the debounce before the direct file-open intent.
$currentCwd.set('/repo-next')
- const openTarget = openReviewForPath('/repo-next/target.ts')
+ const openTarget = openReviewForPath('/repo-next/target.ts', '/repo-next', 'tile:project-b')
expect(review.list).toHaveBeenCalledTimes(1)
+ expect($reviewScopeTarget.get()).toBe('tile:project-b')
await vi.advanceTimersByTimeAsync(100)
directList.resolve({ files: [file('target.ts')] })