btlqql opened a new issue, #4018:
URL: https://github.com/apache/rocketmq-dashboard/issues/4018

   ## Problem
   The current test suite does not cover partial cluster component counting.
   
   ## Expected behavior
   - A focused Vitest case locks the existing behavior.
   - The targeted test file passes and fails if the covered behavior regresses.
   
   ## Scope
   Only add regression coverage for $(@{Slug=cluster-component-count; 
Focus=partial cluster component counting; PrTitle=test(cluster): cover partial 
cluster component counting; 
TestFile=web/src/pages/cluster/clusterStats.test.ts; Mode=existing; 
Append=describe('countClusterComponents partial inventories', () => {
     it('counts only the component kinds present on a cluster', () => {
       const clusters = [
         {
           ...baseCluster,
           brokers: [],
           proxies: [{ addr: 'p:8081' } as ClusterInfo['proxies'][number]],
           nameServers: [],
         },
       ];
   
       expect(countClusterComponents(clusters)).toEqual({
         brokers: 0,
         nameServers: 0,
         proxies: 1,
       });
     });
   });}.TestFile). No runtime behavior changes.
   
   ## Acceptance criteria
   - [ ] The targeted Vitest file passes.
   - [ ] git diff --check is clean.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to