createTestConfig
createTestConfig(
options?):TestSetup
Defined in: console-sdk/src/testing/createTestConfig.ts:80
One-call test setup (SDK_PLAN.md §3.11.2): builds the simulated world and a production-shaped config wired to it. Fresh instances per call — tests are isolated and parallel-safe by construction; there is no reset API because none is needed.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Example
Section titled “Example”const { config, transport, clock } = createTestConfig({ consoles: [{ model: 'echo-rower', serial: '400123', connected: true }],});render(<ConsoleProvider config={config}><App /></ConsoleProvider>);transport.console('400123').run(fixtures.scripted([{ kind: 'steady', seconds: 30 }]));await clock.advance(30_000);