test: rebuild the view-skeleton suite on ADR 0009 tiers (task 0003)

Guard the CLI entry's program.parse() behind import.meta.main so the
command module can be imported without running the CLI, then rebuild the
deleted suite across the three tiers ADR 0009 defines:

- unit: parse (core) and render (bin), asserted on return values
- integration: the view command function, asserted on its Result
- e2e: the kitchen binary as a subprocess (exit codes, streams, ANSI
  suppression, errors, --help)

Drop the stale test-support.ts coverage ignore and refresh the task's
implementation notes to describe the tiered suite.
This commit is contained in:
2026-07-28 22:41:59 -04:00
parent e16f3f957d
commit 02020309eb
7 changed files with 365 additions and 15 deletions

View File

@@ -20,4 +20,6 @@ program
);
});
program.parse();
if (import.meta.main) {
program.parse();
}