Skip to content

chore(tests): added stack stubs test - #111

Merged
petruki merged 1 commit into
masterfrom
staging
Oct 31, 2026
Merged

petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Oct 30, 2026

Copy link
Copy Markdown
Member

This pull request introduces several updates focused on improving local development setup, upgrading CI tooling, and expanding test coverage. The most significant changes include the addition of a .env.template for easier environment configuration, updates to SonarCloud scan actions in CI workflows, and a new test to verify correct behavior when assuming multiple switcher keys.

Regression test added: should stack keys when assuming multiple keys
Problem found in the JS library. Confirmed that this library has no issues.

Development environment improvements:

  • Added a .env.template file with example environment variables (SWITCHER_URL and SWITCHER_API_KEY) to facilitate local development and integration testing.

CI/CD workflow updates:

  • Upgraded the SonarCloud scan GitHub Action from version v8.3.0 to v8.4.0 in both .github/workflows/master.yml and .github/workflows/sonar.yml for improved code analysis and security. [1] [2]

Testing enhancements:

  • Added a new test in tests/switcher-stub.test.ts to ensure that when multiple switcher keys are assumed, the latest assumption for each key takes precedence. This helps verify correct stacking and overriding of key assumptions.

@petruki petruki added this to the v2.5.1 milestone Oct 30, 2026
@petruki petruki self-assigned this Oct 30, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki
petruki merged commit 7d19bc4 into master Oct 31, 2026
5 checks passed
@petruki
petruki deleted the staging branch October 31, 2026 00:00
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.

1 participant