# tests

Integration tests for the normalize CLI binary. `cli_snapshots.rs` tests every subcommand's `--help` output using `assert_cmd` and `insta` snapshot testing — run `cargo insta accept` to approve intentional flag or tagline changes (or rename the `.snap.new` file over the `.snap` and strip the `assertion_line:` field from the header). The `snapshots/` directory holds `.snap` files, one per tested help screen; recent updates added `view chunk`, `view import-path`, `edit add-parameter`, and `edit inline-function`. `daemon_push.rs` spawns an isolated `normalize daemon run` subprocess (passing `NORMALIZE_DAEMON_CONFIG_DIR` to the child for socket/lock isolation) and exercises the JSON and binary subscribe push channels end-to-end — confirms `FileChanged` and `IndexRefreshed` events arrive after real file edits via both wire formats. Each test constructs its `DaemonClient` via `DaemonClient::with_socket_path`, so tests run in parallel without sharing process-global env-var state.

