Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_api_server/src/testing/mock-request.ts>mockRequest

API Server for deno for functional programmed endpoints
Latest
function mockRequest
import { mockRequest } from "https://deno.land/x/deno_api_server@v0.6.4/src/testing/mock-request.ts";

create server request object for testing

Parameters

method: string
uri: string
optional
data: any = [UNSUPPORTED]
optional
options: IMockOptions = [UNSUPPORTED]