File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) => {
You can’t perform that action at this time.
0 commit comments