Documentation
    Preparing search index...

    Function createMockNapEnvironment

    • Instantiate every mock in MOCK_NAP_REGISTRY with one shared Nostr store (so a publish in one social domain is visible to the others), an in-memory storage persistence, and the domain list to expose.

      Parameters

      Returns MockNapEnvironment

      Services, persistence, store, and domain lists.

      const env = createMockNapEnvironment({ seed: 3 });
      env.get('relay').mock.state();
      env.resetAll();