Skip to main content
The SDK includes a second client with the same methods that keeps everything in memory. It is not a stub: records, queries, workflows, tasks and live events all work.
Both clients implement the same DeviasClient interface, so code written against one runs on the other.

Options

Call client.reset() to go back to a clean workspace.

Run the studio on the mock

To work on the studio with no server, run:

Use the mock in tests

Create a fresh client in each test and assert on what is read back. Nothing is shared between clients, and there is nothing to start or stop. The mock does not serve files, so a module’s logo is not available. A module that needs server code, such as a payment provider, can be put in catalog to appear in the list without running. The mock has no workflow runner for queued runs: a run it starts completes immediately.