hacifootprint

testApp

Function: testApp()

Call Signature

testApp<State>(graph, options?): TestApp<State>

Defined in: src/testing/harness.ts:190

Build a headless test harness over a navigation graph. Wires each resolver as a real handler, auto-mounts the current page's tools, and drives the real session — so tests exercise production code, not a copy.

Type Parameters

State

State extends Record<string, unknown> = Record<string, unknown>

Parameters

graph

NavigationGraph

options?

TestAppOptions<State>

Returns

TestApp<State>

Call Signature

testApp<State>(options): TestApp<State>

Defined in: src/testing/harness.ts:194

Build a headless test harness over a navigation graph. Wires each resolver as a real handler, auto-mounts the current page's tools, and drives the real session — so tests exercise production code, not a copy.

Type Parameters

State

State extends Record<string, unknown> = Record<string, unknown>

Parameters

options

TestAppOptions<State> & object

Returns

TestApp<State>

On this page