-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Describe how to use Shot Request/Response mocks #760
Comments
@bajtos , assigned this to you for grooming. Could you please add the acceptance criteria? thanks. |
@dhmlau done |
Based on our meeting today, we think it's good for us to decide the http library we are going to use going forward from #1071 (comment) and #1255 and whether or not it's compatible with |
FWIW, |
Yeah I think we all agree that they'd be useful, it's just the compatibility we'd like to figure out (which, like you said, should not be an issue since they extend from the core). |
I was looking around and it looks like
link: https://www.npmjs.com/package/artificial |
See strongloop-archive/loopback4-example-rpc-server#1 (comment) for background information.
We should improve testlab's README to show how to use Shot and
mockResponse
for mocking/stubbing HTTP request and response objects.Acceptance criteria
Expand the
shot
section of testlab's README (packages/testlab/README.md#shot) to explain users:await
the response (wait until the request is handled) and how to inspect the response returned by the server.Each topic should include a short code snippet to illustrate the intended usage.
The text was updated successfully, but these errors were encountered: