Skip to main content

Testing

Run the frontend check from the repository root:

npm run check

Run the Rust workspace tests:

cargo test --workspace

The Rust tests exercise layout geometry, config defaults and persistence, window eligibility, and the validate-then-arrange pipeline with a mock adapter. The mock records move requests without touching a real desktop.

When changing platform code, test both capability reporting and failure behavior. A Wayland change must preserve read-only semantics unless the adapter gains a real, tested move/resize implementation. When changing the shared types, regenerate or update the bindings consumed by src/lib/shared-types.ts and run both checks.