Commit cac3b06
committed
fix(test): align --no-input write assertion to new error message
Commit be8188b ("fix: harden TTY and output-discipline across CLI
surface") rewrote the --interactive-in-non-TTY error message from
"not supported in non-interactive mode" to the more actionable
"--interactive requires an interactive terminal. Run without
--interactive in CI or non-TTY environments, or pipe input via
stdin."
The unit test in tests/unit/register-write.test.ts was updated in
that commit, but the e2e and integration tests were missed. Both
assert on the write --interactive --no-input failure path.
Match on the stable fragment "requires an interactive terminal"
rather than the full sentence, for drift resilience against future
wording tweaks. The adjacent init assertions keep their "not
supported in non-interactive mode" phrasing — that message still
applies to register-init.ts:25 and is unchanged.1 parent 7d6ba8f commit cac3b06
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments