Skip to content

Commit 38481a2

Browse files
test(desktop): type the accessibility list mock like its siblings
vi.fn(async () => []) infers never[], which rejects the app fixtures. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent b403c35 commit 38481a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/desktop/src/snapShot/DesktopSnapShot.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ beforeEach(() => {
2929
transitionCapturePageMock.mockReset().mockResolvedValue(undefined);
3030
transitionSnapshotMock.mockReset().mockResolvedValue(undefined);
3131
prepareCaptureRevealMock.mockReset();
32+
accessibilityListMock.mockReset().mockResolvedValue([]);
3233
});
3334

3435
const {
@@ -88,7 +89,7 @@ const {
8889
}
8990
>(),
9091
accessibilityByPidMock: vi.fn(),
91-
accessibilityListMock: vi.fn(async () => []),
92+
accessibilityListMock: vi.fn(),
9293
accessibilityForegroundMock: vi.fn(),
9394
accessibilityTrustedMock: vi.fn((_prompt = false) => true),
9495
allWindowsMock: vi.fn(

0 commit comments

Comments
 (0)