Packages@robojs/server
ForTestingOptions
Interface: ForTestingOptions
Options for creating a RoboRequest for testing purposes
Properties
| Property | Type | Description |
|---|---|---|
baseUrl? | string | Base URL for constructing absolute URLs (defaults to 'http://localhost:3000') |
body? | unknown | Request body (will be JSON stringified if object) |
headers? | Record<string, string> | Request headers |
method? | string | HTTP method (defaults to 'GET') |
params? | Record<string, string> | URL parameters extracted from dynamic segments like [id] |
path? | string | URL path (defaults to '/test') |
query? | Record<string, string | string[]> | Query string parameters |
