createMemoryStorage
createMemoryStorage():
MemoryStorage
Defined in: console-sdk/src/testing/memoryStorage.ts:72
Creates a MemoryStorage: the production in-memory adapter plus
inspection helpers (SDK_PLAN.md §3.11.2, §4.8.1). Each call returns an
isolated instance backed by its own Map — two providers in one test file
share nothing.
createTestConfig() calls this for you and returns the instance as
TestSetup.storage; call it directly only when composing a simulated
world by hand.
Returns
Section titled “Returns”Example
Section titled “Example”const storage = createMemoryStorage();const config = createConsoleConfig({ storage });// … run the SDK …expect(storage.savedDevices().size).toBe(1);