refactor: deepen GSDTools query execution seams (#3085)

* refactor: deepen gsdtools query execution seams

* docs: add changeset for query seam deepening

* docs: fix changeset summary text

* fix: address coderabbit query seam findings

* test: address remaining coderabbit findings and notes

* refactor: use internal gsdtools error type import
This commit is contained in:
Tom Boucher
2026-05-03 18:56:41 -04:00
committed by GitHub
parent 5e21bf7567
commit 42ed7cee8d
24 changed files with 871 additions and 445 deletions

View File

@@ -349,6 +349,14 @@ describe('stateBeginPhase', () => {
).rejects.toThrow('missing value for --phase');
});
it('bug-2420: flag parser throws when a flag is last token with no value', async () => {
const { stateBeginPhase } = await import('./state-mutation.js');
await expect(
stateBeginPhase(['--name', 'Title', '--plans', '1', '--phase'], tmpDir)
).rejects.toThrow('missing value for --phase');
});
it('does not treat argv after named flags as positional name/plans', async () => {
const { stateBeginPhase } = await import('./state-mutation.js');