Skip to content

Commit 70ef0b6

Browse files
committed
test(snapshot): pin post-wire scope owner
1 parent 9055b4c commit 70ef0b6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/daemon/__tests__/snapshot-state.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,16 +378,13 @@ test('buildSnapshotState leaves raw snapshot hittability untouched', () => {
378378
).toBeUndefined();
379379
});
380380

381-
test('buildSnapshotState returns empty nodes when scoped snapshot has no label match', () => {
381+
test('buildSnapshotState returns empty nodes when a post-wire scoped snapshot has no match', () => {
382382
const nodes = [
383383
{ index: 0, depth: 0, type: 'Window', label: 'Root' },
384384
{ index: 1, depth: 1, type: 'Button', label: 'Search' },
385385
];
386386

387-
const state = buildSnapshotState(
388-
{ nodes, backend: 'xctest' },
389-
{ snapshotScope: 'zzzz-no-match-token' },
390-
);
387+
const state = buildSnapshotState({ nodes }, { snapshotScope: 'zzzz-no-match-token' });
391388

392389
expect(state.nodes).toEqual([]);
393390
});

0 commit comments

Comments
 (0)