Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-mock-http) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-mock-http
Node.js http.IncomingMessage
and http.ServerResponse
mocked implementations that allows emulate calling Node.js http handlers. (based on unjs/unenv v1).
Usage
[!NOTE] Documentation is incomplete!
import { fetchNodeRequestHandler } from "node-mock-http";
const nodeHandler = (req, res) => {
res.end("OK!");
};
const res = await fetchNodeRequestHandler(
nodeHandler,
"http://example.com/test",
);
Development
local development
License
Published under the MIT license.
Made by community 💛
🤖 auto updated with automd