LogoRobo.js
Packages@robojs/mock

StartMockRoboOptions

Interface: StartMockRoboOptions

Options for starting a mock Robo

Properties

PropertyTypeDescription
activity?booleanSkip waiting for a Discord Gateway bot connection. Use this for Discord Activities or other projects with disableBot: true that don't connect to the Gateway. When enabled, waits for the Robo HTTP server to be ready instead of waiting for a Gateway connection.
hmr?booleanEnable HMR mode - spawns robo dev --hmr as child process instead of running Robo.start() directly. Required for testing hot module replacement. When enabled: - client will be null (runs in separate process) - process will contain the child process - waitForHmrReload() and waitForFullRestart() will be available
logFile?string | booleanEnable file logging for this test. - true: Auto-name from testFilePath (e.g., "ping.test.log") - string: Custom log file path - false: Disable file logging - undefined: Auto-enable when running under robo mock test with testFilePath
logLevel?"error" | "trace" | "debug" | "info" | "warn"Log level for file output. Default 'debug'
name?stringSession name
port?numberMock server port (auto-discovered if not specified)
testFilePath?stringTest file path for registry tracking and log file naming (use __filename)
timeout?numberTimeout for bot to connect in ms (default: 30000)
verbose?booleanEnable verbose output (shows logs in console alongside file)

On this page