Create the NAP-COUNT mock.
Store, relays, limits, and shared mock options.
A count ServiceHandler with mock controls.
ServiceHandler
mock
const count = createMockCountService();count.handleMessage('w1', { type: 'count.query', id: 'c1', filters: [{ kinds: [1] }] }, console.log); Copy
const count = createMockCountService();count.handleMessage('w1', { type: 'count.query', id: 'c1', filters: [{ kinds: [1] }] }, console.log);
Create the NAP-COUNT mock.