Describe the feature
There are no test files anywhere in the repo (no *.test.*, no *.spec.*, no #[cfg(test)] modules). Critical logic has no safety net: tab reducer (open/close/closeOthers/closeToTheRight/closeSaved), git log/stash parsing via \x1f/\x1e separators, autosave, agent prompt aggregator.
Proposed feature:
- Add
vitest to apps/desktop with at least three initial suites: tabs reducer (extract from AppContext), git log/stash parser, agent prompt aggregator.
- Add Rust tests under
#[cfg(test)] mod tests in apps/desktop/src-tauri/src/lib.rs covering validate_branch_name, netstat/lsof parsing fixtures, git_log parser with control bytes, and repo_to_raw_base.
- Gate CI on
pnpm test and cargo test (see related CI issue).
Would you like to implement this feature yourself by sending a PR?
Maybe
Describe the feature
There are no test files anywhere in the repo (no
*.test.*, no*.spec.*, no#[cfg(test)]modules). Critical logic has no safety net: tab reducer (open/close/closeOthers/closeToTheRight/closeSaved), git log/stash parsing via\x1f/\x1eseparators, autosave, agent prompt aggregator.Proposed feature:
vitesttoapps/desktopwith at least three initial suites: tabs reducer (extract fromAppContext), git log/stash parser, agent prompt aggregator.#[cfg(test)] mod testsinapps/desktop/src-tauri/src/lib.rscoveringvalidate_branch_name,netstat/lsofparsing fixtures,git_logparser with control bytes, andrepo_to_raw_base.pnpm testandcargo test(see related CI issue).Would you like to implement this feature yourself by sending a PR?
Maybe