Summary of What Needs to be Done
Add test coverage for createStore with user-supplied custom middleware chaining in packages/store/src/store.test.ts.
Changes that Need to be Made
- Add a test file
packages/store/src/middleware.test.ts
- Test a simple logging middleware that wraps
set calls
- Test middleware chaining: apply two middleware in sequence
- Test that middleware can access previous state and next state
- Test that throwing in middleware correctly propagates the error
Impact that it would Provide
- Documents the middleware API contract for custom middleware authors
- Ensures middleware chaining order is predictable
- Covers a critical extensibility feature that lacks test coverage
Note: please assign this issue to the tmdeveloper007 account.
Summary of What Needs to be Done
Add test coverage for
createStorewith user-supplied custom middleware chaining inpackages/store/src/store.test.ts.Changes that Need to be Made
packages/store/src/middleware.test.tssetcallsImpact that it would Provide
Note: please assign this issue to the
tmdeveloper007account.