* refactor(query): deepen runtime context, native adapter, and cli output seams * chore(changeset): add fragment for query seam deepening continuation * refactor(query): converge internal command-resolution imports on canonical seam * refactor(query): remove dead seam wrappers and converge on canonical modules * docs(architecture): update context and adr for query seam completion * fix(query): preserve gsd-tools stderr in cli output and clarify static ws test scope * test(query): cover whitespace stderr and null exitCode fallback
15 lines
561 B
TypeScript
15 lines
561 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { supportsMutationCommand, supportsRawOutputCommand } from './query-policy-capability.js';
|
|
|
|
describe('query-registry-capability', () => {
|
|
it('reports mutation command capability', () => {
|
|
expect(supportsMutationCommand('state.update')).toBe(true);
|
|
expect(supportsMutationCommand('state.json')).toBe(false);
|
|
});
|
|
|
|
it('reports raw output capability', () => {
|
|
expect(supportsRawOutputCommand('state.load')).toBe(true);
|
|
expect(supportsRawOutputCommand('state.json')).toBe(false);
|
|
});
|
|
});
|