yyqdbngt opened a new pull request, #4077: URL: https://github.com/apache/rocketmq-dashboard/pull/4077
Fixes #4038 ## Summary Adds a focused Vitest suite for the auth store (`web/src/stores/authStore.ts`) that locks in the in-memory session updates through `login`/`logout` and the localStorage persistence of the display identity without writing a bearer token. ## Why The auth store is the single source of truth for the logged-in session and is restored from localStorage across reloads. It had no direct regression coverage, so changes to login/logout or the persistence keys could silently break session restore. ## Testing - `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` → exit 0 - `./node_modules/.bin/vitest run src/stores/__tests__/authStore.test.ts` → 2 tests pass -- 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]
