Hmr.forTesting constructor

Hmr.forTesting()

Fresh, isolated instance for unit tests. Bypasses the static singleton so each test starts with an empty handler list.

Implementation

factory Hmr.forTesting() = Hmr._;