Create the NAP-NOTIFY mock. Notifications live in mock.state() until dismissed; interact() drives the shell-initiated pushes.
mock.state()
interact()
Controls, permission policy, and shared mock options.
The notify mock service.
const notify = createMockNotifyService();notify.handleMessage('w1', { type: 'notify.send', id: 'n1', title: 'New message' }, send);// → notify.controls push, then { type: 'notify.send.result', id: 'n1', notificationId: 'shell-1' } Copy
const notify = createMockNotifyService();notify.handleMessage('w1', { type: 'notify.send', id: 'n1', title: 'New message' }, send);// → notify.controls push, then { type: 'notify.send.result', id: 'n1', notificationId: 'shell-1' }
Create the NAP-NOTIFY mock. Notifications live in
mock.state()until dismissed;interact()drives the shell-initiated pushes.