Documentation
    Preparing search index...

    Interface MockNapEnvironment

    A ready-to-wire mock environment for a shell.

    const env = createMockNapEnvironment();
    createShellBridge({ ...hooks, services: env.services, statePersistence: env.statePersistence });
    interface MockNapEnvironment {
        domains: readonly string[];
        serviceDomains: readonly string[];
        services: Readonly<Record<string, MockService>>;
        statePersistence: MockStatePersistence;
        store: MockNostrStore;
        get<TState = unknown>(domain: string): MockService<TState>;
        resetAll(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    domains: readonly string[]

    Wire domains to list in the shell environment's capabilities.domains.

    serviceDomains: readonly string[]

    Service domains actually created (subset of domains).

    services: Readonly<Record<string, MockService>>

    Domain → handler, ready for ShellAdapter.services or registerService.

    statePersistence: MockStatePersistence

    In-memory StatePersistence backing the runtime-owned storage domain.

    Event store shared by relay, outbox, count, identity, common, and lists.

    Methods