LogoRobo.js
Packages@robojs/server

ForTestingOptions

Interface: ForTestingOptions

Options for creating a RoboRequest for testing purposes

Properties

PropertyTypeDescription
baseUrl?stringBase URL for constructing absolute URLs (defaults to 'http://localhost:3000')
body?unknownRequest body (will be JSON stringified if object)
headers?Record<string, string>Request headers
method?stringHTTP method (defaults to 'GET')
params?Record<string, string>URL parameters extracted from dynamic segments like [id]
path?stringURL path (defaults to '/test')
query?Record<string, string | string[]>Query string parameters

On this page