You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 18:43:14 UTC
[PR] test: add first unit tests for engineStore [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3596:
URL: https://github.com/apache/rocketmq-dashboard/pull/3596
### Summary
Adds the first unit tests for the persisted per-user agent engine preference store.
The store keeps a claude-code default, persists the selection under the `rocketmq-studio-agent-engine` key with schema version 1, and migrates stale persisted engines back to the default. The tests cover the default, the setter, the persistence shape and the migration path.
### Changes
- `web/src/stores/engineStore.test.ts`
- `defaults to the claude-code engine`: initial state is the default engine.
- `setEngine switches the active engine`: qoder selection lands in the state.
- `persists the chosen engine with the current schema version`: localStorage carries state plus version 1.
- `migrates stale persisted engines back to the default`: a version-0 payload is reset to claude-code on load.
### Testing
- `vitest run src/stores/engineStore.test.ts` passes; `tsc --noEmit` and `eslint` 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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add first unit tests for engineStore [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3596: test: add first unit tests for engineStore
URL: https://github.com/apache/rocketmq-dashboard/pull/3596
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org