SageConfig
Properties
baseUrl
baseUrl:
null
|string
Base URL for the server. Prefix for all requests. Useful for common API paths like /api/v1. Please also remember that all HTTP paths have to start with a slash. E.g. your request URL may be /users/
and the base URL is /api/v1, so the final URL will be /api/v1/users/.Default
Source
dedicated
dedicated:
boolean
Launch a dedicated server which will be preserved between requests. When you call request(), it will spin up a new server for you. This server will persist throughout testing, so you’ll have to shut it down manually via close(). When this option is set to false, sagetest mimics supertest behaviour and spins up a new server for each request, as well as handles its graceful shutdown.
Default
Source
keepAlive
keepAlive:
boolean
Whether to establish a keep-alive connection to the server.
Default
Source
port
port:
number
Port for the dedicated server. No idea why would anyone want to use this. It’s better to use ephemeral ports to avoid conflicts.