-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The current test suite is missing coverage for several important scenarios:
Missing test scenarios:
- Handling of empty middlewares array vs. undefined middlewares
- Custom
fetchFnparameter usage and behavior - Error propagation through the middleware chain
- Middleware that does not call
next() - Middleware that transforms request or response
- Async middleware execution and edge cases
- Support for multiple arguments to fetch (e.g.,
url,options)
Proposed actions:
- Add test cases for each scenario listed above
- Ensure all edge cases and error paths are covered
- Refactor existing tests for clarity and completeness where necessary
Improving coverage for these cases will help ensure the middleware behaves correctly under all expected and edge-case conditions.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request