Skip to content

Commit e192a8a

Browse files
committed
fixing unit test failure
1 parent b849ba6 commit e192a8a

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

tests/unit/services/workspace-extractor.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,12 @@ describe('workspace-extractor', () => {
7575
ResourceType.Documentation,
7676
];
7777

78-
// Keep this test focused on the workspace extractor iteration contract.
79-
// Some type extractors may issue additional list calls (for example,
80-
// Logger extraction prefetches NamedValues for credential normalization).
81-
const firstSeenInOrder = seenTypes.filter((type, index) =>
82-
seenTypes.indexOf(type) === index
83-
);
84-
expect(firstSeenInOrder).toEqual(expectedTypes);
78+
// Keep this test focused on the workspace extractor iteration contract,
79+
// including known helper calls (Logger extraction prefetches NamedValues).
80+
expect(seenTypes).toEqual(expectedCallSequence);
8581

8682
// Ensure no unexpected resource types are listed for workspace extraction.
87-
expect(seenTypes.every((type) => expectedTypes.includes(type))).toBe(true);
83+
expect(seenTypes.every((type) => expectedCallSequence.includes(type))).toBe(true);
8884
});
8985

9086
it('should skip extraction when no workspace names in filter', async () => {

0 commit comments

Comments
 (0)