firecamp-io / firecamp

VSCode for APIs, Postman Alternative.

Home Page:https://firecamp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] web socket/Socket.io scripting

venomdev opened this issue · comments

I am working with jest for testing our sockets at the moment. It would be handy to be able to add some scripts in firecamp socket listeners so that we can save any return values to the environment variables to be used in another test.

It would also be handy to have something like a nextCall()/nextEvent() function so that the tests progress in order they were set in the UI rather than having to call the next event inside the listener.

This is handy for the developers to create the tests as they develop but also useful for the testers without much scripting experience to test the socket endpoints.

Welcome to the Firecamp! Thanks and congrats for opening your very first issue in Firecamp.
Join the Discord community here https://discord.gg/8hRaqhK Hope you have a great time here :)

Thanks for sharing the idea of scripting @venomdev. We'll definitely consider it. We need more brainstorming for it. May I know how you're using Jest for event testing?