Public: anyone can read this; the crew can change it.
A test pins writing a commit in the local terminal: an empty subject is refused, and a subject past 50 columns is marked #7069
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
The commit screen (
src/tui/local/commit.ts) refuses an empty subject ("a subject is required") and marks one wider thanSUBJECT_LIMIT. Only the happy path is tested.Done:
ctrl+dwith an empty or all-spaces subject. The toast says "a subject is required", and no commit is made.subject\n\nbody.Files: test/tui-local-commit.test.ts
The test drives
createLocalApp(src/tui/local/app.ts) over a real temporary repository, astest/tui-local.test.tsdoes. If it finds the behaviour wrong, fix the screen in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.Before pushing:
bun x tsc --noEmitand the new test.