jest-launchdarkly-mock icon indicating copy to clipboard operation
jest-launchdarkly-mock copied to clipboard

Support for Vitest test runner

Open vcapretz opened this issue 3 years ago • 5 comments

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 avatar Apr 24 '23 21:04 vcapretz

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

vcapretz avatar Apr 24 '23 21:04 vcapretz

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 avatar May 17 '23 21:05 louis-launchdarkly

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 avatar Jun 21 '23 20:06 louis-launchdarkly

@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

bohdanbirdie avatar Jul 19 '23 20:07 bohdanbirdie