Skip to content

Function: resetControlSurface()

resetControlSurface(): void

Defined in: testing.ts:164

Reset the control surface between tests: every registered control returns to its declared initial value (through its own validation) and the recorded dependency edges are cleared. The REGISTRATIONS persist — app controls are declared at module import, modules don't re-import between tests, and a reset that unregistered them would leave every test after the first staring at an empty registry (the template e2e caught exactly that).

ts
afterEach(() => resetControlSurface());

Cells need no equivalent: cellHarness(...).dispose() tears their owner down, and their registry entries (and edges) go with it. A test that builds cells over controls uses both — dispose the harness, reset the surface.

Returns

void