-
Notifications
You must be signed in to change notification settings - Fork 15
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
Mock server calls recording #489
Comments
Hi @KayleighYum |
Hi @divdavem we currently have a worker running the mock server and another one running our tests. We're have specified certain endpoints to the mock server to return/alter state that we're storing in the mock server. This is working fine but we were wondering if this could be improved. Previous iterations of this was using the onListen hook to start up a readiness server and then used that server for state management. |
Thank you for your answer!
I like the way you implemented it. 👍 |
Currently we're using the hook method to check if the place starts with certain keywords, wrapping the state in a payload and using the hook to return the response from the payload. It's a very hardcoded if/else statement that could become finicky later on It would be great if it could come from the package for others to use. Is this something that is in scope? |
Would it be possible to support recording all calls made to the server? The recording would store the request url, method and body (if exists)
The reasons for this would be:
The text was updated successfully, but these errors were encountered: