Skip to main content

Interface: FakeStorageOptions

Defined in: packages/testing/src/storage.ts:33

Properties

kind?

optional kind?: "dexie" | "sqlite" | "memory";

Defined in: packages/testing/src/storage.ts:39

Which adapter this claims to be, for code that branches on storage.kind. The implementation is always the memory adapter — a fake that really opened IndexedDB would not be a fake.


latencyMs?

optional latencyMs?: number;

Defined in: packages/testing/src/storage.ts:43

Baseline delay on every repo call.


now?

optional now?: () => number;

Defined in: packages/testing/src/storage.ts:45

Injectable clock, so createdAt/updatedAt are pinnable.

Returns

number


quotaBytes?

optional quotaBytes?: number;

Defined in: packages/testing/src/storage.ts:41

Simulated device quota; writes past it reject with RASD_STORAGE_QUOTA.