Skip to content

Conversation

@petruki
Copy link
Member

@petruki petruki commented Jan 10, 2026

This pull request introduces a new method to the SwitcherBuilder class to allow clearing of strategy inputs, along with an associated test to ensure correct behavior. The main goal is to provide a way to reset the internal input state and verify that this affects the switcher's operation as expected.

Enhancements to input management and testing:

  • Added a new resetInputs() method to the SwitcherBuilder class, which clears the internal _input state and allows method chaining.
  • Added an end-to-end test in switcher-client.test.js to verify that calling resetInputs() clears the input and changes the switcher's state accordingly.

@petruki petruki added this to the v4.5.1 milestone Jan 10, 2026
@petruki petruki self-assigned this Jan 10, 2026
@petruki petruki added the enhancement New feature or request label Jan 10, 2026
@sonarqubecloud
Copy link

@petruki petruki merged commit c0c29ce into master Jan 10, 2026
22 of 24 checks passed
@petruki petruki deleted the staging branch January 10, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants