Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a FakeUnleash facade for automated testing #700

Open
julioz opened this issue Jan 22, 2025 · 1 comment
Open

Provide a FakeUnleash facade for automated testing #700

julioz opened this issue Jan 22, 2025 · 1 comment

Comments

@julioz
Copy link

julioz commented Jan 22, 2025

Describe the feature request

Similar to what exists in the Java SDK, we would like to allow feature flag value manipulation in the local development environment, to facilitate unit and integration testing.

Background

No response

Solution suggestions

Would it make sense to extract an interface into unleash.ts and then include a fake implementation that stubs every method call?

@gastonfournier
Copy link
Contributor

Hi @julioz this is a good suggestion, similar to Unleash/unleash-proxy-client-js#241

In this case you can use bootstrap and disabling polling to provide the initial values for testing, providing a different instance for each test depending on your needs.

Despite that, this would be nice to have, but unfortunately not in our priorities at this moment. We'd be happy to review and provide support in case you want to make a contribution.

@gastonfournier gastonfournier moved this from New to For later in Issues and PRs Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: For later
Development

No branches or pull requests

2 participants