We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current HTTP test is tested by opening the child process, which will actually listen to the port.
We should provide a way to set up a simulated HTTP server without listening to the port.
so that we can test this HTTP server without any cost.
import { mock } from "https://deno.land/std/http/mock.ts"; import { serve } from "https://deno.land/std/http/server.ts"; const s = serve("0.0.0.0:8000"); const mocker = mock(s); const response = mocker.get("/test"); // ...
The above code, it seems impossible, it is just a hypothesis of mine.
If anyone has a better idea, welcome post it.
This is the tool I wrote in Golang before. axetroy/mocker
The text was updated successfully, but these errors were encountered:
To add for ref i like the Fastify implementation inject. Ref: https://github.com/fastify/fastify/blob/master/docs/Testing.md
inject
Sorry, something went wrong.
@axetroy How do they do this within the Go standard library?
feat: deno task db:restore (denoland#535)
deno task db:restore
4109f6c
Prerequisite for denoland#514.
No branches or pull requests
The current HTTP test is tested by opening the child process, which will actually listen to the port.
We should provide a way to set up a simulated HTTP server without listening to the port.
so that we can test this HTTP server without any cost.
The above code, it seems impossible, it is just a hypothesis of mine.
If anyone has a better idea, welcome post it.
The text was updated successfully, but these errors were encountered: