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

Support for Vitest test runner #56

Open
vcapretz opened this issue Apr 24, 2023 · 4 comments
Open

Support for Vitest test runner #56

vcapretz opened this issue Apr 24, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@vcapretz
Copy link

I see this library is very specific to jest, do you plan on supporting Vitest?

I guess one could either have a new lib vitest-launchdarkly-mock or a more generic one, wdyt?

@vcapretz
Copy link
Author

btw, the API looks really similar, we are planning to migrate to Vitest and I ported over this lib to our monorepo, I installed all the lodash dependencies plus launchdarkly-js-client-sdk and essentially renamed everything jest. to vi. and it works, but ideally we would use this lib

@louis-launchdarkly
Copy link
Contributor

Hello @vcapretz, thank you for the question, and sorry for the late reply. Currently, there is no plan for supporting Vitest. If there is a way to refactor to a more generic one to support multiple testing frameworks, that would be nice.

@louis-launchdarkly
Copy link
Contributor

Hello @vcapretz, as a follow-up, while there is no ETA yet, I have discussed with the JS engineer on this, it would be good to eventually support vitest as a separate package. I will mark this as an enhancement and track this internally.

Filed internally as 207468.

@louis-launchdarkly louis-launchdarkly added the enhancement New feature or request label Jun 21, 2023
@bohdanbirdie
Copy link

@vcapretz @louis-launchdarkly
I hope this helps https://github.com/bohdanbirdie/vitest-launchdarkly-mock

I'm planning to use this for my needs, feel free to suggest changes

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

No branches or pull requests

3 participants