Skip to content

Conversation

@NilCor3
Copy link

@NilCor3 NilCor3 commented May 21, 2025

Features

  • Add support for depleted mock responses and custom repsonder callback
  • Add support for mock match limits before they are depleted

Inner workings

  • Move state to mockResponse to keep it where it is relevant
  • Add support for checking of mockResponse is depleted
  • Handle all mockResponses with filter before others, keeping initial sort
    order otherwise
  • Add support for adding mockResponse with responder callback instead of
    static response

Bugfix

  • Fixed bug where multiple static mocks with callbacks caused index out
    of bounds

No breaking changes

NilCor3 added 2 commits May 21, 2025 10:33
- Move state to mockResponse to keep it where it is relevant
- Add support for checking of mockResponse is depleted
- Handle all mockResponses with filter before others, keeping initial sort
  order otherwise
- Add support for adding mockResponse with responder callback instead of
  static response
- Fixed bug where multiple static mocks with callbacks caused index out
  of bounds
tsfcode
tsfcode previously approved these changes May 21, 2025
jonaz
jonaz previously approved these changes May 21, 2025
@NilCor3 NilCor3 dismissed stale reviews from jonaz and tsfcode via 45f86de May 21, 2025 11:56
@jonaz jonaz merged commit 89128f7 into FortnoxAB:main May 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants