yyqdbngt opened a new pull request, #3811: URL: https://github.com/apache/rocketmq-dashboard/pull/3811
### Motivation The existing `dashboardService.test.ts` covers only the mock-mode defensive copies. The non-mock branch that delegates to the metrics API had no coverage. ### Changes - `delegates to the metrics API when mock mode is off`: flips the data-mode flag to non-mock, resolves the metrics API stub and asserts `getDashboard` forwards the instance id and returns the API payload unchanged. ### Verification ``` ./node_modules/.bin/vitest run src/services/dashboardService.test.ts # 2 passed ./node_modules/.bin/tsc --noEmit # clean ./node_modules/.bin/eslint src/services/dashboardService.test.ts # 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]
