LogoRobo.js
Packages@robojs/server

TestRouteOptions

Interface: TestRouteOptions

Options for testing a route module

Extends

Properties

PropertyTypeDescriptionInherited from
baseUrl?stringBase URL for constructing absolute URLs (defaults to 'http://localhost:3000')TestRequestOptions.baseUrl
body?unknownRequest body (will be JSON stringified if object)TestRequestOptions.body
forceHandler?| "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "default"Override method detection and call a specific handler-
headers?Record<string, string>Request headersTestRequestOptions.headers
method?"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"HTTP method (defaults to 'GET')TestRequestOptions.method
params?Record<string, string>URL parameters extracted from dynamic segments like [id]TestRequestOptions.params
path?stringURL path (defaults to '/test')TestRequestOptions.path
query?Record<string, string | string[]>Query string parametersTestRequestOptions.query

On this page