Skip to content

test(store): add test coverage for createStore with custom middleware chaining #3293

Description

@tmdeveloper007

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.

Metadata

Metadata

Labels

assignedIssue claimed by a contributor.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions