rest-handler
A module for creating a request handler that does REST style routing
next-test-api-route-handler
Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment
in-process-request
A node.js library that executes a http handler function in the current process without having to start a local http server.