plushie/testing/backend/session_backend

Pure session test backend.

Runs the app’s init/update/view cycle in-memory without a renderer binary. Uses the same pure Elm loop as the real runtime, but skips the wire protocol and rendering.

Interactions (click, type_text, toggle, etc.) construct the appropriate Event and dispatch it through the update cycle. Element queries search the normalized tree directly.

This backend works on both BEAM and JavaScript targets.

Values

pub fn backend() -> backend.TestBackend(model)

Create a pure session test backend.

All operations run in-memory without a renderer. Widget interactions are simulated by constructing events directly.

Search Document