installMockMenuBar function

Module @runic-artifex/views/mock in @runic-artifex/views 0.23.0

function installMockMenuBar(menus: readonly MenuBarMenu[], options?: MockMenuBarOptions): MockMenuBar;

Serves the in-page menu bar (menu bar page protocol 2) with menus on a mock Bridge, for tests of a page's menu bar. Install it before the first createMenuBarController(). The mock answers as Runic Desktop does: stale for an item of an earlier bar, disabled for a disabled item, and executed after recording the invocation.