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.
7 lines
236 B
TOML
7 lines
236 B
TOML
[test]
|
|
# Coverage is opt-in via `bun test --coverage` (see the test:coverage script).
|
|
# These settings only take effect when that flag is passed.
|
|
coverageReporter = ["text", "lcov"]
|
|
coverageDir = "coverage"
|
|
coverageSkipTestFiles = true
|