This message was deleted.
# helpdesk
s
This message was deleted.
m
cc @polite-kilobyte-67570 @eager-zoo-16408
e
Hey @brave-spring-93557, I’m afraid I don’t have a good solution for you. Due to the nature of video/audio applications, it is inherently difficult to mock, test, and reliably execute these tests without an actual connection to the server. The only thing (as far as I know) that simulates users is the
simulateParticipants
option here: https://docs.livekit.io/client-sdk-js/classes/Room.html#simulateParticipants If you are using
@livekit/components-react
then you can also us it like this:
Copy code
<LiveKitRoom
 simulateParticipants={9}
>
    {...}
</LiveKitRoom>
I’m not aware of any project that has mocked API calls to LiveKit Cloud, but maybe someone in the community has built something cool. If you want to share your setup/integration and what you want to test, we might be able to give you some more detailed feedback/tips. I’m afraid it’s still a problem that could use some cool solutions. If you come up with something, we would love to see it! :)
b
Ok I will check out simulateParticipants; thank you!!
m
would it be possible to spin up a local LK server (with a different url and api key/secret pair) when running in the test env?
b
oh interesting idea, i can also look into that
p
you can also have a look at how we solve this in the components repo for storybook. We basically inject a dummy room context in order to make it work. The solution is however very similar to what dsa proposed already. https://github.com/livekit/components-js/blob/main/docs/storybook/.storybook/lk-decorators/RoomContext.tsx
🙌 1