installMockBridge function

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

function installMockBridge(bridge?: MockBridge): MockBridge;

Installs a mock as window.__runicBridge, so generated clients connect to it instead of waiting for a .NET host. Call it before the first connect*(). The clients that framework bindings keep after their component went away (README, "Client lifetime") belong to the Bridge they connected over: installing another Bridge releases them, so the next test's bindings connect to the new mock instead of taking over a client of the previous one.